首页 > 解决方案 > 反应样板:超过最大调用堆栈大小

问题描述

我正在尝试创建react-boilerplate但出现以下错误。

npm ERR! Maximum call stack size exceeded

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/dev1/.npm/_logs/2019-02-05T10_12_55_340Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! react-boilerplate@3.7.0 presetup: `npm i chalk shelljs`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the react-boilerplate@3.7.0 presetup 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:
npm ERR!     /home/dev1/.npm/_logs/2019-02-05T10_12_55_434Z-debug.log

节点版本:v8.9.4

我已经从 git 克隆设置并运行npm run setup命令,但出现此错误。

注意: remove node_modues and re-install node_modules- 不工作 uninstall node globaly and re-install node- 不工作

任何人都可以帮忙吗?

标签: node.jsreactjsreact-boilerplate

解决方案


我检查了 npm 日志,发现它在安装时失败 @xtuc/ieee754 我找到了这个解决方案https://github.com/angular/angular-cli/issues/12231

您可能必须删除 ~/.npmrc 文件。

我试过这个,它为我解决了这个问题。

希望这可以帮助!

这个问题只是浪费了我的 6 个小时 :(


推荐阅读