node.js - 反应样板:超过最大调用堆栈大小
问题描述
我正在尝试创建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
- 不工作
任何人都可以帮忙吗?
解决方案
我检查了 npm 日志,发现它在安装时失败 @xtuc/ieee754 我找到了这个解决方案https://github.com/angular/angular-cli/issues/12231
您可能必须删除 ~/.npmrc 文件。
我试过这个,它为我解决了这个问题。
希望这可以帮助!
这个问题只是浪费了我的 6 个小时 :(
推荐阅读
- c++ - 为什么在 unordered_map 中使用 find() 比直接读取要快得多?
- java - Is it possible to have a Java annotation that doesn't apply to any class, method, field, etc. Just the annotation itself generating code
- c# - 使球体在两点之间的线渲染器中移动?
- node.js - Posting a multipart form with file in Axios, Nodejs
- roku - Click button not fire a click Event and how to navigate another panel in ROKU
- r - 在数据框中按组对行进行排序、排序或排名
- xml - Remove tags from XML in PowerShell
- selenium-webdriver - 如何使用 selenium 网格从不同的机器调用并行浏览器?
- java - WildFly 15+ 无法启动持久性单元
- keycloak - 如何获取自定义用户存储提供程序的角色