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