You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
C:\Users\Administrator\AppData\Roaming\npm\node_modules\python.js>if not defined
npm_config_node_gyp (node "D:\Program Files\nodejs\node_modules\npm\bin\node-gy
p-bin....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node rebui
ld )
'python-config' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
gyp: Call to 'python-config --libs' returned exit status 1. while trying to load
binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: gyp failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (D:\Program Files\nodejs\node_module
s\npm\node_modules\node-gyp\lib\configure.js:355:16)
gyp ERR! stack at ChildProcess.emit (events.js:110:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1074
:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "D:\Program Files\nodejs\node_modules\npm\node_modu
les\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd C:\Users\Administrator\AppData\Roaming\npm\node_modules\python.js
gyp ERR! node -v v0.12.7
gyp ERR! node-gyp -v v2.0.1
gyp ERR! not ok
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "D:\Program Files\nodejs\node.exe" "D:\Program Files\nodejs
\node_modules\npm\bin\npm-cli.js" "install" "python.js" "-g"
npm ERR! node v0.12.7
npm ERR! npm v2.11.3
npm ERR! code ELIFECYCLE
npm ERR! python.js@0.5.0 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the python.js@0.5.0 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the python.js package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls python.js
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\Administrator\npm-debug.log
Activity
shawumu commentedon Aug 2, 2015
已经解决了,原来不能用npm install 来安装
huangrurong commentedon Jun 17, 2016
怎么安装呢?linux