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