1

Both create-react-app and npm install webpack(webpack is failing. Other packages installation worked) give "Maximum call stack size exceeded" error. Tried "npm cache clean --force", deleted package-lock, did reinstall on npm (npm install), npm rebuild, upgrade node and npm to recent stable versions (Node:8.12.0 & NPM:6.4.1 ). Inspite of all that error still exists.

create-react-app demo-app gives below error

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 gives below error

npm WARN registry Using stale data from https://registry.npmjs.org/ because the
host is inaccessible -- are you offline?
npm WARN registry Using stale package data from https://registry.npmjs.org/ 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
6
  • Are you sure you have internet access for download more than certain size ? Commented Oct 8, 2018 at 7:51
  • Maybe try disabling "Windows Defender - Controlled Folder Access"? stackoverflow.com/a/48395826/1248811 Commented Oct 8, 2018 at 18:07
  • @ViswanathLekshmanan, yes have sufficient internet access. Commented Oct 10, 2018 at 4:06
  • @Atav32, disabling "Windows Defender" did not work. Commented Oct 10, 2018 at 4:06
  • Do you have any proxy/settings in your configuration (.npmrc)? Commented Nov 15, 2018 at 8:56

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.