好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

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

#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

#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

#deprecated minimatch@2.0.10: Please up date 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镜像,就可以避免这些问题,具体使用如下:


查看更多关于angular-cli环境搭建过程中常遇到的npm install问题的详细内容...

  阅读:36次