码迷,mamicode.com
首页 > 其他好文 > 详细

npm install 报错

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

标签:his   ati   with   stack   undle   删掉   最大   either   解决   

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

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 报错

标签:his   ati   with   stack   undle   删掉   最大   either   解决   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!