报错信息:
npm ERR! code ELIFECYCLE
npm ERR! errno 134
npm ERR! GAWeb@1.0.0 nativeBuild: react-app-rewired build
npm ERR! Exit status 134
npm ERR!
npm ERR! Failed at the GAWeb@1.0.0 nativeBuild script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:…
通常是因为node栈溢出
解决方法为:
方案一:
更新一下node版本就好
方案二:终端中输入
export NODE_OPTIONS="--max-old-space-size=8192"
将内存设置成8mb即可
方案三:下载插件
npm install increase-memory-limit
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)