gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYTHON env variable.
gyp ERR! stack at failNoPython (C:\Users\Administrator\AppData\Roaming\npm\node_modules\cnpm\node
_modules\npminstall\node_modules\node-gyp\lib\configure.js:401:14)
gyp ERR! stack at C:\Users\Administrator\AppData\Roaming\npm\node_modules\cnpm\node_modules\npmin
stall\node_modules\node-gyp\lib\configure.js:356:11
按http://www.ruanyifeng.com/blog/2016/01/babel.html里面的教程,我在文件夹内通过安装 cnpm install --save-dev babel-cli 出错了,是不是要安装python,求分析谢谢!
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
后来运行了下babel,发现可以运行,可能这个出错对转码没影响。
npm前面不需要加c的吧。
cnpm install -g python
试试,当时我开发react-native遇到这情况解决了的,gyp出错了我好像换了nodejs版本解决了的