永发信息网

Windows10 下使用npm install命令出错

答案:1  悬赏:0  手机版
解决时间 2021-03-29 15:59
  • 提问者网友:战魂
  • 2021-03-28 23:37
Windows10 下使用npm install命令出错
最佳答案
  • 五星知识达人网友:白昼之月
  • 2021-03-29 00:58
Windows环境下npm install安装包依赖时,常出现一些错误,下面为个人解决办法:

错误一

缺少python环境:

复制代码
G:\nodejs\moviesite\node_modules\bcrypt>if not defined npm_config_node_gyp (node
"D:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\
node-gyp\bin\node-gyp.js" rebuild ) else (rebuild)
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 failNoPython (D:\Program Files\nodejs\node_modules\npm\nod
e_modules\node-gyp\lib
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯