python版本差异_npm install报错,不知道是系统差异还是node版本差异,跟python有关系?...

源自:1-3 项目安装

npm install报错,不知道是系统差异还是node版本差异,跟python有关系?

> 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. (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

提问者:逼近疯狂的边缘

2017-09-24 00:21

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值