node.js - 使用nvm重装node后,angular cli 如何配置?
天蓬老师
天蓬老师 2017-04-17 16:05:53
0
2
498

第一次用node安装angular-cli的时候没报错,可是我用nvm更换node版本后, 再次安装angular-cli失败 说是找不到Python文件,ng serve也说找不到......求大神解决,只要能能使用angular cli 就行了...
][2]

错误代码如下:

天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(2)
Ty80

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

刘奇

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template