admin 管理员组文章数量: 887021
create
create-react-app
和npm install webpack
(webpack失败。其他软件包安装工作)给出“超出最大调用堆栈大小”错误。尝试了“npm cache clean --force
”,删除了包锁,在npm(npm install
),npm rebuild
,升级节点和npm重新安装到最近的稳定版本(节点:8.12.0和NPM:6.4.1)。尽管如此,错误仍然存在。
create-react-app demo-app
给出了以下错误
Creating a new React app in D:\Projects\demo-app.
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts...
npm ERR! Maximum call stack size exceeded
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\mkatti\AppData\Roaming\npm-cache\_logs\2018-10-08T07_21_50
_853Z-debug.log
Aborting installation.
npm install --save --save-exact --loglevel error react react-dom react-scripts
has failed.
Deleting generated file... package.json
Deleting demo-app / from D:\Projects
Done.
npm install webpack --save-dev
给出了以下错误
npm WARN registry Using stale data from / because the
host is inaccessible -- are you offline?
npm WARN registry Using stale package data from / due
to a request error during revalidation.
npm ERR! Maximum call stack size exceeded
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\mkatti\AppData\Roaming\npm-cache\_logs\2018-10-08T07_28_07
_840Z-debug.log
回答如下:
我认为问题在于最新版本的webpack。我遇到了类似的问题,然后我安装了4.0.0实际工作!
本文标签: create
版权声明:本文标题:create 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.freenas.com.cn/jishu/1712855554h617804.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论