javascript - 求问,windows安装babel出错

查看:77
本文介绍了javascript - 求问,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,发现可以运行,可能这个出错对转码没影响。

这篇关于javascript - 求问,windows安装babel出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆