npm-python报错

报错场景:

npm安装依赖过程中,开始都很正常,最后报这个错:
Error: Can't find Python executable "python", you can set the PYTHON env variable

img

解决:

1、安装windows-build-tools

npm install --global --production windows-build-tools

2、安装node-gyp

npm install --global node-gyp

img

posted @ 2021-07-06 13:41  千年轮回  阅读(775)  评论(0)    收藏  举报