angular-cli环境搭建过程中常遇到的npm install问题

  1. #You got to add python to your PATH variable. One thing you can do is Edit your Path variable now and add#
    原因:python环境未安装

    解决方法:npm install --global --production windows-build-tools

  2. #angular-cli has been renamed to @angular/cli. Please update your dependencies#
    原因:在npm下需使用@angular/cli安装angular-cli,并且它只支持Node6.9.0+,npm3+
    解决方法:npm install -g @angular-cli@latest

  3. #deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue#
    原因:minimatch@2.0.10被废弃,需要更新至3.0.2或更高版本才能避免 RegExp DoS问题
    解决方法:
    npm update minimatch@3.0.2
                   npm update -d

      以上均是使用npm安装才会出现的问题,其实只要使用淘宝的npm镜像,就可以避免这些问题,具体使用如下:


posted @ 2017-10-18 17:26  Chinghung_Lee  阅读(3095)  评论(0编辑  收藏  举报