第一次用node安装angular-cli的时候没报错,可是我用nvm更换node版本后, 再次安装angular-cli失败 说是找不到Python文件,ng serve也说找不到......求大神解决,只要能能使用angular cli 就行了...
][2]
错误代码如下:
PHP中文网2017-04-17 16:07:53
It seems to be solved. When clearing angular-cli, you need to clear the cache,
npm uninstall -g angular-cli
npm cache clean
Also delete the ng and ng.cmd files, and then use Taobao mirror to install:
npm install -g cnpm --registry=https://registry.npm.taobao.org
cnpm install -g angular-cli
怪我咯2017-04-17 16:07:53
First of all, have you installed Python? If not, install it
https://www.python.org/downlo...
If it has been installed, check if the path is c:/python27/python.exe
Add python to the windows environment variable, the method is Baidu