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

在Windows系统上尝试安装Node.js模块时遇到问题,'gm' 和 'phantomjs' 命令无法执行,接着在安装canvas模块时,由于使用的Python版本为3.5.2,而gyp不支持这个版本,需要Python 2.5.0到3.0.0之间的版本。错误提示显示Node.js版本为6.8.0,node-gyp版本为3.4.0,这可能是导致问题的原因之一。
摘要由CSDN通过智能技术生成

> 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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值