npm error: Maximum call stack size exceeded
在新项目进行npm install时发生的错误,网上的解决方法有两种:
降级:npm install -g npm@5.4.0
升级:npm install -g npm
首先升级,升级后依然报错,故降级,降级后出现这个错误:
WARNING: You are likely using a version of node-tar or npm that is incompatible with this version of Node.js.\staging-
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 compatible with Node.js 9 and above.
npm[15592]: src\node_zlib.cc:436: Assertion `args.Length() == 7 && “init(windowBits, level, memLevel, strategy, writeResult, writeCallback,” " dictionary)"’ failed.
1: 00007FF700D79055
2: 00007FF700D52FE6
3: 00007FF700D530B1
4: 00007FF700CC541C
5: 00007FF70136B022
6: 00007FF70136C4CD
7: 00007FF70136B559
8: 00007FF70136B43B
9: 000002C0D18841C1
原来是node.js的问题,看来要重装node.js了,
首先uninstall npm:
npm uninstall -g npm
接着去这个网站重装nodejs:
https://nodejs.org
最后重装npm:
npm install -g npm
再npm install, 就可以了。
此时报错:
npm WARN angular-esri-components@1.0.3 requires a peer of @angular/common@^2.3.1 || ^5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN angular-esri-components@1.0.3 requires a peer of @angular/core@^2.3.1 || ^5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN angular-esri-loader@1.1.1 requires a peer of @angular/core@^4.1.1 but none is installed. You must install peer dependencies yourself.
npm WARN angular-esri-loader@1.1.1 requires a peer of rxjs@^5.3.0 but none is installed. You must install peer dependencies yourself.
npm WARN bootstrap@4.1.3 requires a peer of popper.js@^1.14.3 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“win32”,“arch”:“x64”})
audited 21840 packages in 25.795s
found 15 vulnerabilities (9 low, 6 high)
run npm audit fix
to fix them, or npm audit
for details
我们运行npm audit fix --force
还是报错(警告):
npm WARN angular-esri-components@1.0.3 requires a peer of @angular/common@^2.3.1 || ^5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN angular-esri-components@1.0.3 requires a peer of @angular/core@^2.3.1 || ^5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN angular-esri-loader@1.1.1 requires a peer of @angular/core@^4.1.1 but none is installed. You must install peer dependencies yourself.
npm WARN angular-esri-loader@1.1.1 requires a peer of rxjs@^5.3.0 but none is installed. You must install peer dependencies yourself.
npm WARN bootstrap@4.1.3 requires a peer of popper.js@^1.14.3 but none is installed. You must install peer dependencies yourself.
此时运行:
npm install -g npm-install-peers
npm error: Maximum call stack size exceeded相关推荐
- clone别人远程仓库的代码,运行npm install报错npm ERR! Maximum call stack size exceeded
运行npm install报错,我是实习生,实习第四天就各种出错,多人合作的时候连clone下来的仓库,运行npm install时都出错:npm ERR! Maximum call stack si ...
- npm 报错 : npm ERR! Maximum call stack size exceeded
之前,在npm下载包的时候出现一个错误: npm ERR! Maximum call stack size exceeded npm ERR! A complete log of this run c ...
- npm 报错 : npm ERR! Maximum call stack size exceeded npm ERR! A complete log of this run can be found
之前,在npm下载包的时候出现一个错误: npm ERR! Maximum call stack size exceeded npm ERR! A complete log of this run c ...
- npm ERR! Maximum call stack size exceeded
使用npm命令npm install时候出现错误: D:\Java 1\WorkSpace\workspaces-VsCode\egg_mongo_server\egg_mongo_server> ...
- IDEA报错npm ERR Maximum call stack size exceeded
同样问题,建议先试一下情况二 在IDEA中,vue项目下,进行npm组件安装时,报错如下: 在搜索了多种解决方案后,可能是node.js的版本太低,需要更新的原因.发现有的确实是这个问题. 情况一 可 ...
- ERROR in app.js from UglifyJs RangeError: Maximum call stack size exceeded
在使用webpack中的uglify时报错: ERROR in app.js from UglifyJs RangeError: Maximum call stack size exceeded 看了 ...
- npm run build打包时提示RangeError:Maximum call stack size exceeded
项目打包时提示如下: UnhandlePromiseRejectionWarning:RangeError:Maximum call stack size exceeded at match (-/v ...
- 视频流媒体平台EasyNVR前端打npm包后报Maximum call stack size exceeded错误
我们的流媒体服务器平台可以说已经成为国内视频互联网化基础建设的排头兵,比如我们熟知的EasyNVR,几乎各个民生行业都已经有了它视频能力输出的身影,EasyNVR的可靠性.完整性.稳定性受到了业界的广 ...
- 解决npm 安装依赖提示 Maximum call stack size exceeded问题
问题场景:项目npm install 安装依赖时报错:Maximum call stack size exceeded. 解决思路: 1.删除node_modules重新npm install 2.清 ...
最新文章
- Go 学习笔记(15)— 函数(01)[函数定义、函数特点、多值返回、实参形参、变长参数,函数作为参数调用]
- JSP session过期时间(小记)
- 使用canvas实现数据可视化
- collection集合 多少钱_Java 集合(2)-- Iterator接口源码超级详细解析
- 汇编语言-012(扩展加法指令ADC、带借位减法指令SBB、执行加法后进行ASCII调整指令、AAS 、AAM、AAD 、DAA指令将和数转成压缩十进制格式)
- python嵩天课后题及答案第二章_课后参考答案-第二章部分习题参考答案
- Sklearn——用Sklearn实现K近邻分类(KNN)
- 贺利坚老师汇编课程66笔记:自定义除法中断学习如何编制中断程序
- 1、Java多线程基础:进程和线程之由来
- 使用Antlr实现简单的DSL
- vbb论坛(vBulletin)后台获取webshell
- 【JAVA】-- 坦克大战全部代码
- android11代码关机
- restframework序列化解析详解(番外)
- 高效扫频水处理器原理介绍
- CSS3炫酷的发光文字 可自定义文字色彩
- 什么是判断力?如何提高判断力?@HR人才测评
- C语言 neutralize函数,因子中性化
- NDK篇 - JNI NDK 初探
- win7系统下连网络打印机打印反应很慢解决方法