逼近疯狂的边缘
2017-09-24 00:21
> gmsmith@0.1.3 preinstall D:\code\imooc\node_modules\.staging\gmsmith-25b516c8
> gm help
'gm' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
> phantomjssmith@0.1.11 preinstall D:\code\imooc\node_modules\.staging\phantomjssmith-85a0b53
c
> phantomjs --version
'phantomjs' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
> canvas@1.0.4 install D:\code\imooc\node_modules\canvas
> node-gyp rebuild
D:\code\imooc\node_modules\canvas>if not defined npm_config_node_gyp (node "D:\software\nodeJ
S\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild )
else (node "" rebuild )
gyp ERR! configure error
gyp ERR! stack Error: Python executable "C:\Users\lenovo\AppData\Local\Programs\Python\Python
35\python.EXE" is v3.5.2, which is not supported by gyp.
gyp ERR! stack You can pass the --python switch to point to Python >= v2.5.0 & < 3.0.0.
gyp ERR! stack at failPythonVersion (D:\software\nodeJS\node_modules\npm\node_modules\nod
e-gyp\lib\configure.js:454:14)
gyp ERR! stack at D:\software\nodeJS\node_modules\npm\node_modules\node-gyp\lib\configure
.js:443:9
gyp ERR! stack at ChildProcess.exithandler (child_process.js:197:7)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at maybeClose (internal/child_process.js:877:16)
gyp ERR! stack at Socket.<anonymous> (internal/child_process.js:334:11)
gyp ERR! stack at emitOne (events.js:96:13)
gyp ERR! stack at Socket.emit (events.js:188:7)
gyp ERR! stack at Pipe._handle.close [as _onclose] (net.js:498:12)
gyp ERR! System Windows_NT 10.0.15063
gyp ERR! command "D:\\software\\nodeJS\\node.exe" "D:\\software\\nodeJS\\node_modules\\npm\\n
ode_modules\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd D:\code\imooc\node_modules\canvas
gyp ERR! node -v v6.8.0
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
不用管直接npm start就可以了
我也报同样的错误,请问你解决了吗
前端性能优化-通用的缓存SDK
24889 学习 · 50 问题
相似问题