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镜像,就可以避免这些问题,具体使用如下:



免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM