首页 > 其他 > 详细

npm install 报错

时间:2020-04-29 20:50:12      阅读:66      评论:0      收藏:0      [点我收藏+]

先出现的是超过最大调用栈问题:

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

npm install 报错

原文:https://www.cnblogs.com/jinzhou/p/12804287.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!