npm 安装依赖过程中报错:Error: Can‘t find Python executable “python“, you can set the PYTHON env variable

Posted 地表最强菜鸡

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了npm 安装依赖过程中报错:Error: Can‘t find Python executable “python“, you can set the PYTHON env variable相关的知识,希望对你有一定的参考价值。

报错场景:npm安装依赖过程中,开始都很正常,最后报这个错:

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

2、安装node-gyp

npm install --global node-gyp

问题完美解决!

以上是关于npm 安装依赖过程中报错:Error: Can‘t find Python executable “python“, you can set the PYTHON env variable的主要内容,如果未能解决你的问题,请参考以下文章

npm i安装包依赖时 gyp ERR! stack Error: Can‘t find Python executable “python“, you can set the PYTHON env(

npm i安装包依赖时 gyp ERR! stack Error: Can‘t find Python executable “python“, you can set the PYTHON env

词云:解决pip install wordcloud安装过程中报错“error: command 'x86_64-linux-gnu-gcc' failed with exit sta

Error:To install them, you can run: npm install --save vue-style-loader css-loader……

Error:To install them, you can run: npm install --save vue-style-loader css-loader……

NPM全局安装依赖权限报错Error: EACCES: permission denied