目录

npm-install-报错-stack-Error-Cant-find-Python-executable-python

目录

npm install 报错 :stack Error: Can’t find Python executable “python”

因为node-gyp的安装需要,它只能支持python2,官方推荐python2.7,

安装完成后,设置环境变量PYTHONPATH(值为安装目录,例如C:\Python27)与PYTHON(值为%PYTHONPATH%\python.exe)

然后在终端中进行设置: npm config set python “C:\Python27\python.exe”

原文链接:https://blog.csdn.net/qq_38053195/article/details/87070583