Why does node-sass always report this error? Other folders will not report errors, but this folder will report errors?

/ / Installed 1 packages
/ Linked 168 latest versions
Downloading binary from https://cdn.npm.taobao.org/di.
Cannot download" https://cdn.npm.taobao.org/dist/node-sass/v3.13.1/win32-x64-57_binding.node":

HTTP error 404 Not Found

Hint: If github.com is not accessible in your location

  try setting a proxy via HTTP_PROXY, e.g.

  export HTTP_PROXY=http://example.com:1234

or configure npm proxy via

  npm config set proxy http://example.com:8080

Building: C:Program Filesnodejsnode.exe F:01node_modules_node-gyp@3.8.0@node-gypbinnode-gyp.js rebuild-- verbose-- libsass_ext=-- libsass_cflags=-- libsass_ldflags=-- libsass_library=
gyp info it worked if it ends with ok
gyp verb cli ["C:\ Program Files\ nodejs\ node.exe",
gyp verb cli"F:\ 01\ node_modules\ _ node-gyp@3.8.0@node-gyp\ bin\ node-gyp.js",
gyp verb cli "rebuild",
gyp verb cli"--verbose",
gyp verb cli"--libsass_ext=",
gyp verb cli"--libsass_cflags=",
gyp verb cli"--libsass_ldflags=",
gyp verb cli"--libsass_library="]
gyp info using node-gyp@3.8.0
gyp info using node@8.11.3 | win32 | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
gyp verb download using dist-url https://npm.taobao.org/mirror.
gyp verb check python checking for Python executable" python2 "in the PATH
gyp verb which failed Error: not found: python2
gyp verb which failed at getNotFoundError (F:01node_modules_which@1.3.1@whichwhich.js:13:12)
gyp verb which failed at F (F:01node_modules_which@1.3.1@whichwhich.js:68:19)
gyp verb which failed at E (F:01node_modules_which@1.3.1@whichwhich.js:80:29)
gyp verb which failed at F : 01node_modules_which@1.3.1@whichwhich.js:89:16
gyp verb which failed at F:01node_modules_isexe@2.0.0@isexeindex.js:42:5
gyp verb which failed at F:01node_modules_isexe@2.0.0@isexewindows.js:36:5
gyp verb which failed at FSReqWrap.oncomplete (fs.js:152:21)
gyp verb which failed python2 {Error: not found: python2
gyp verb which failed at GetNotFoundError (F:01node_modules_which@1.3.1@whichwhich.js:13:12)
gyp verb which failed at F (F:01node_modules_which@1.3.1@whichwhich.js:68:19)
gyp verb which failed at E (F:01node_modules_which@1.3.1@whichwhich.js:80:29)
gyp verb which failed at F:01node_modules_which@1.3.1@whichwhich.js:89:16
gyp Verb which failed at F:01node_modules_isexe@2.0.0@isexeindex.js:42:5
gyp verb which failed at F:01node_modules_isexe@2.0.0@isexewindows.js:36:5
gyp verb which failed at FSReqWrap.oncomplete (fs.js:152:21)
gyp verb which failed stack: "Error: not found: python2n at getNotFoundError (F:\ 01\ node_modules\ _ which@1.3.1@which\ which .js: 13:12) n at F (F:\ 01\ node_modules\ _ which@1.3.1@which\ which.js:68:19) n at E (F:\ 01\ node_modules\ _ which@1.3.1@which\ which.js:80:29) n at F:\ 01\ node_modules\ _ which@1.3.1@which\ which.js:89:16n at F:\ 01\ node_modules\ _ isexe@2.0 .0 @ isexe\ index.js:42:5n at F:\ 01\ node_modules\ _ isexe@2.0.0@isexe\ windows.js:36:5n at FSReqWrap.oncomplete (fs.js:152:21)",
gyp verb which failed code: "ENOENT"}
gyp verb check python checking for Python executable "python" in the PATH
gyp verb which succeeded python C:UsersLJXPCAppDataLocalProgramsPythonPython36python.EXE
gyp err! Configure error
gyp err! Stack Error: Command failed: C:UsersLJXPCAppDataLocalProgramsPythonPython36python.EXE-c import sys; print "% s.%s.%s"% sys.version_info [: 3];
gyp err! Stack File "< string >", line 1
gyp err! Stack import sys; print "% s.%s.%s"% sys.version_info [: 3];
gyp err! Stack ^
gyp err! Stack SyntaxError: invalid syntax
gyp err! Stack
gyp err! Stack at ChildProcess.exithandler (child_process.js:275:12)
gyp err! Stack at emitTwo (events.js:126:13)
gyp err! Stack at ChildProcess.emit (events.js:214:7)
gyp err! Stack at maybeClose (internal/child_process.js:925:16)
gyp err! Stack at Socket.stream.socket.on (internal/child_process.js:346:11)
gyp err! Stack at emitOne (events.js:116:13)
gyp err! Stack at Socket.emit (events.js:211:7)
gyp err! Stack at Pipe._handle.close [as _ onclose] (net.js:557:12)
gyp err! System Windows_NT 10.0.17134
gyp err! Command "C:\ Program Files\ nodejs\ node.exe"F:\ 01\ node_modules\ _ node-gyp@3.8.0@node-gyp\ bin\ node-gyp.js"rebuild"--verbose"--libsass_ext="-- libsass_cflags= "--libsass_ldflags="-- libsass_library= "
gyp err! Cwd F:01node_modules_node-sass@3.13.1@node-sass
gyp err! Node-v v8.11.3
gyp err! Node-gyp-v v3.8.0
gyp err! Not ok
Build failed with error code: 1
Install fail! Error: post install error, please remove node_modules before retry!
Run "C:WINDOWSsystem32cmd.exe / d / s / c node scripts/build.js" error, exit code 1
Error: post install error, please remove node_modules before retry!
Run "C:WINDOWSsystem32cmd.exe / d / s / c node scripts/build.js" error, exit code 1

at ChildProcess.proc.on.code (C:\Users\LJXPC\AppData\Roaming\npm\node_modules\cnpm\node_modules\runscript\index.js:74:21)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:925:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)

npminstall version: 3.9.2
npminstall args: C:Program Filesnodejsnode.exe C:UsersLJXPCAppDataRoamingnpmnode_modulescnpmnode_modulesnpminstallbininstall.js-- fix-bug-versions-- china-- userconfig=C:UsersLJXPC.cnpmrc-- disturl= https://npm.taobao.org/mirror.-- registry= https://registry.npm.taobao.org node-sass-- seve-dev

Apr.09,2021

change npm source


change to node-sass version, this version does not have precompiled binaries
or do not use cnpm to install


various answers given online npm/node version and npm/cnpm/yarn are still not successful. The simple and rude way is to throw a colleague's bag into or and download a corresponding version of the package on the Internet, and then npm install it again. -- that is, download a method in node_modules


to see if the source in your npm is the same as the source in package-lock. Just cut it

.
Menu