首页 > 求问,windows安装babel出错

求问,windows安装babel出错

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,求分析谢谢!


后来运行了下babel,发现可以运行,可能这个出错对转码没影响。


在windows7 下;我全局也安装了,当前项目也安装了;但是我babel -v 的时候报错


npm前面不需要加c的吧。


cnpm install -g python
试试,当时我开发react-native遇到这情况解决了的,gyp出错了我好像换了nodejs版本解决了的

【热门文章】
【热门文章】