admin 管理员组

文章数量: 887021

create

create-react-appnpm 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