javascript - Install using Installation, $ npm install hexo-renderer-scss --save
PHP中文网
PHP中文网 2017-07-03 11:41:10
0
1
1809

yuexiao@Lenovo-PC MINGW64 ~
$ npm config get registry
https://registry.npm.taobao.org/

yuexiao@Lenovo-PC MINGW64 ~
$ cd blog

yuexiao@Lenovo-PC MINGW64 ~/blog
$ npm install hexo-renderer-scss --save

npm WARN prefer global node-gyp@3.6.2 should be installed with -g

node-sass@3.13.1 install C:Usersyuexiaoblognode_modulesnode-sass
node scripts/install.js

Downloading binary from https://github.com/sass/node-... 3.1/win32-x64-57_binding.node
Cannot download "https://github.com/sass/node-sass/releases/download/v3.13.1/win 32-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

node-sass@3.13.1 postinstall C:Usersyuexiaoblognode_modulesnode-sass
node scripts/build.js

Building: C:Program Filesnodejsnode.exe C:Usersyuexiaoblognode_modulesno de-gypbinnode-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libs ass_ldflags= --libsass_library=
gyp info it worked if it ends with ok
gyp verb cli [ 'C:\Program Files\nodejs\node.exe',
gyp verb cli 'C:\Users\yuexiao\blog\node_modules\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.6.2
gyp info using node@8.1.2 | win32 | x64
gyp verb command rebuild []
gyp verb command clean []
gyp verb clean removing "build" directory
gyp verb command configure []
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 (C:Usersyuexiaoblognode_modu leswhichwhich.js:13:12)
gyp verb which failed at F (C:Usersyuexiaoblognode_moduleswhichwhich .js:68:19)
gyp verb which failed at E (C:Usersyuexiaoblognode_moduleswhichwhich .js:80:29)
gyp verb which failed at C:Usersyuexiaoblognode_moduleswhichwhich.js :89:16
gyp verb which failed at C:Usersyuexiaoblognode_modulesisexeindex.js :42:5
gyp verb which failed at C:Usersyuexiaoblognode_modulesisexewindows. 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 (C:Usersyuexiaoblognode_modu leswhichwhich.js:13:12)
gyp verb which failed at F (C:Usersyuexiaoblognode_moduleswhichwhich .js:68:19)
gyp verb which failed at E (C:Usersyuexiaoblognode_moduleswhichwhich .js:80:29)
gyp verb which failed at C:Usersyuexiaoblognode_moduleswhichwhich.js :89:16
gyp verb which failed at C:Usersyuexiaoblognode_modulesisexeindex.js :42:5
gyp verb which failed at C:Usersyuexiaoblognode_modulesisexewindows. js:36:5
gyp verb which failed at FSReqWrap.oncomplete (fs.js:152:21)
gyp verb which failed stack: 'Error: not found: python2n at getNotFoundE rror (C:\Users\yuexiao\blog\node_modules\which\which.js:13:12)n at F ( C:\Users\yuexiao\blog\node_modules\which\which.js:68:19)n at E (C:\Us ers\yuexiao\blog\node_modules\which\which.js:80:29)n at C:\Users\yuex iao\blog\node_modules\which\which.js:89:16n at C:\Users\yuexiao\blog node_modules\isexe\index.js:42:5n at C:\Users\yuexiao\blog\node_modul es\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 failed Error: not found: python
gyp verb which failed at getNotFoundError (C:Usersyuexiaoblognode_modu leswhichwhich.js:13:12)
gyp verb which failed at F (C:Usersyuexiaoblognode_moduleswhichwhich .js:68:19)
gyp verb which failed at E (C:Usersyuexiaoblognode_moduleswhichwhich .js:80:29)
gyp verb which failed at C:Usersyuexiaoblognode_moduleswhichwhich.js :89:16
gyp verb which failed at C:Usersyuexiaoblognode_modulesisexeindex.js :42:5
gyp verb which failed at C:Usersyuexiaoblognode_modulesisexewindows. js:36:5
gyp verb which failed at FSReqWrap.oncomplete (fs.js:152:21)
gyp verb which failed python { Error: not found: python
gyp verb which failed at getNotFoundError (C:Usersyuexiaoblognode_modu leswhichwhich.js:13:12)
gyp verb which failed at F (C:Usersyuexiaoblognode_moduleswhichwhich .js:68:19)
gyp verb which failed at E (C:Usersyuexiaoblognode_moduleswhichwhich .js:80:29)
gyp verb which failed at C:Usersyuexiaoblognode_moduleswhichwhich.js :89:16
gyp verb which failed at C:Usersyuexiaoblognode_modulesisexeindex.js :42:5
gyp verb which failed at C:Usersyuexiaoblognode_modulesisexewindows. js:36:5
gyp verb which failed at FSReqWrap.oncomplete (fs.js:152:21)
gyp verb which failed stack: 'Error: not found: pythonn at getNotFoundEr ror (C:\Users\yuexiao\blog\node_modules\which\which.js:13:12)n at F (C :\Users\yuexiao\blog\node_modules\which\which.js:68:19)n at E (C:\Use rs\yuexiao\blog\node_modules\which\which.js:80:29)n at C:\Users\yuexi ao\blog\node_modules\which\which.js:89:16n at C:\Users\yuexiao\blog\ node_modules\isexe\index.js:42:5n at C:\Users\yuexiao\blog\node_module s\isexe\windows.js:36:5n at FSReqWrap.oncomplete (fs.js:152:21)',
gyp verb which failed code: 'ENOENT' }
gyp verb could not find "python". checking python launcher
gyp verb could not find "python". guessing location
gyp verb ensuring that file exists: C:Python27python.exe
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYT HON env variable.
gyp ERR! stack at PythonFinder.failNoPython (C:Usersyuexiaoblognode_modu lesnode-gyplibconfigure.js:483:19)
gyp ERR! stack at PythonFinder.<anonymous> (C:Usersyuexiaoblognode_modul esnode-gyplibconfigure.js:508:16)
gyp ERR! stack at C:Usersyuexiaoblognode_modulesgraceful-fspolyfills.j s:284:29
gyp ERR! stack at FSReqWrap.oncomplete (fs.js:152:21)
gyp ERR! System Windows_NT 10.0.14393
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Users\yuexiao\blog \node_modules\node-gyp\bin\node-gyp.js" "rebuild" "--verbose" "--libsass_ext =" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd C:Usersyuexiaoblognode_modulesnode-sass
gyp ERR! node -v v8.1.2
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
Build failed with error code: 1
npm WARN Error: EPERM: operation not permitted, scandir 'C:Usersyuexiaoblogn ode_modulessass-graphnode_modules'
npm WARN { Error: EPERM: operation not permitted, scandir 'C:Usersyuexiaoblo gnode_modulessass-graphnode_modules'
npm WARN errno: -4048,
npm WARN code: 'EPERM',
npm WARN syscall: 'scandir',
npm WARN path: 'C:\Users\yuexiao\blog\node_modules\sass-graph\node_modul es' }
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@3.13.1 postinstall: node scripts/build.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@3.13.1 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional log ging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:UsersyuexiaoAppDataRoamingnpm-cache_logs2017-07-01T01_33_5 6_331Z-debug.log

PHP中文网
PHP中文网

认证0级讲师

reply all(1)
巴扎黑
  1. Please describe your problem clearly

  2. Based on

gyp verb check python checking for Python executable "python" in the PATH
gyp verb which failed Error: not found: python

Judging from this paragraph, the problem may be that the python environment variable is not configured. Configure python in PATH and try again.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template