解决gyp ERR! stackError: Can‘t find Python executable “python“, you can set the PYTHON env variable.

gyp verb ensuring that file exists: C:\Python27\python.exe
gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.

解决方案:

npm --add-python-to-path='true' --debug install --global windows-build-tools
npm install --global node-gyp

然后删除node_modules模块和package-lock.json 文件
再次运行

npm install 

来源:https://github.com/JeremyEnglert/JointsWP/issues/317

你可能感兴趣的:(error)