npm报错:npm ERR! Maximum call stack size exceeded npm ERR! A complete log of this run can be found in

版权声明:本文原创为夏狮狮,转载请说明出处! https://blog.csdn.net/weixin_42470791/article/details/82990906

在npm下载包的时候出现一个错误:

npm ERR! Maximum call stack size exceeded
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\安宁的小狮狮\AppData\Roaming\npm-cache_logs\2018-10-09T16_04_57_084Z-debug.log

错误截图:
在这里插入图片描述

错误原因:

npm版本的问题,你也可以去提示的那个npm目录里面去查看日志,你可以尝试一下更新一下npm的版本,或者回退一下版本。

更新npm版本命令:

npm install npm -g 要记住全局更新
淘宝镜像命令:cnpm install npm -g 淘宝镜像会比较快
再查看一下npm版本:npm -v

再试着去安装其他包,好OK了!

猜你喜欢

转载自blog.csdn.net/weixin_42470791/article/details/82990906