npm install 報錯踩坑路


先出現的是超過最大調用棧問題:

npm ERR! Maximum call stack size exceeded 

百度之后說給npm降級或者升級

  • 降級 : npm install -g npm@5.4.0
  • 升級 : npm install -g npm  升級到最新版

結果降級之后再嘗試的時候就直接報版本跟node.js不兼容的問題,然后各種在升級都不好使,只能重新刪掉在升級。

You are likely using a version of node-tar or npm that is incompatible with this version of Node.js.
Please use either the version of npm that is bundled with Node.js, or a version of npm (> 5.5.1 or < 5.4.0) or node-tar (> 4.0.1) that is compa
tible with Node.js 9 and above.

解決辦法: 

  1、npm uninstall -g npm

  2、npm install -g npm


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM