Home  >  Q&A  >  body text

node.js - 使用nvm重装node后,angular cli 如何配置?

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

错误代码如下:

天蓬老师天蓬老师2765 days ago492

reply all(2)I'll reply

  • PHP中文网

    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

    reply
    0
  • 怪我咯

    怪我咯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

    reply
    0
  • Cancelreply