npm install时报错:Error: Can‘t find Python executable “python“;和Cannot find module ‘node-sass‘
问题
最近在做项目时使用vscode导入前端项目,在进行 npm install 运行报错 Error: Can’t find Python executable “python”, you can set the PYTHON env variable
解决方法:
1、 安装windows-build-tools
npm install --global --production windows-build-tools
安装就是安装 Python
2、安装node-gyp
npm install -
原创
2021-12-06 13:53:15 ·
1228 阅读 ·
0 评论