npm install 时遇到的 python 问题,,gypERR!con
npm install 时遇到的 python 问题,,gypERR!con
gypERR!configureerrorgypERR!stackError:Pythonexecutable"python"isv2.4.3,whichisnotsupportedbygyp.gypERR!stackYoucanpassthe--pythonswitchtopointtoPython>=v2.5.0&<3.0.0.gypERR!stackatfailPythonVersion(/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:125:14)gypERR!stackat/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:114:9
解决,安装多个版本的python
设定一个符合的一个版本
You can use--pythonoption to npm like so:
npminstall--python=python2.7
or set it to be used always:
npmconfigsetpythonpython2.7
Npm will in turn pass this option to node-gyp when needed.
(note: I‘m the one who opened an issue on Github to have this included in the docs, as there were so many questions about it ;-) )
npm install 时遇到的 python 问题
评论关闭