NPM 错误收集及解决方法

gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.

出现上面图中问题,解决办法,打开终端(管理员模式),输入下面的内容:

安装node-sass

npm install node-sass --save-dev

安装完成后继续执行下面的命令:

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

否则会提示:

Please restart thie script from a administrative PowerShell!
再输入:

npm install --global node-gyp

 

posted @ 2021-09-25 15:52  ice.ko  阅读(244)  评论(0编辑  收藏  举报