npx create-react-app my-app --- > npm ERR! Maximum call stack size exceeded
See original GitHub issueIs this a bug report?
YES
Did you try recovering your dependencies?
npm --version --> 6.4.1
Which terms did you search for in User Guide?
I’m trying to create new React application with npx create-react-app, but I get the following error:
npm ERR! Maximum call stack size exceeded
Environment
System: OS: macOS 10.14 CPU: x64 Intel® Core™ i5-5257U CPU @ 2.70GHz Binaries: Node: 8.12.0 - /usr/local/bin/node npm: 6.4.1 - /usr/local/bin/npm Browsers: Chrome: 69.0.3497.100 Firefox: 58.0.2 Safari: 12.0 npmPackages: react: Not Found react-dom: Not Found react-scripts: Not Found npmGlobalPackages: create-react-app: 2.0.3
Steps to Reproduce
(Write your steps here:)
- I’m trying to create new React application with npx create-react-app, but I get the following error:
- Uninstall node, npm, create-react-app and back install and dit it not work
- Uninstall node, npm and create-react-app, reinstall them and follow the same error when you run “npx create-react-app my-app”
Expected Behavior
I thought that when executing “npx create-react-app my-app” my my-app project would be created as always.
Actual Behavior
1- I’m trying to create new React application with npx create-react-app, but I get the following error:
Reproducible Demo
(Paste the link to an example project and exact instructions to reproduce the issue.)
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (1 by maintainers)
Top GitHub Comments
After a long days without luck, finally found a great solution and able to run the command
npx create-react app awesome-app
,npm init react-app awesome-app
andcreate-react-app awesome-app
with npm or yarn as wellThe culprit was
.npmrc
file that was located on your user home dirUsers/you/.npmrc
. once you remove the files, or remove the contents you should be able to init the CRA2 now.Happy hacking!
man, the workaround you mentioned wasn’t helping me (because i don’t have an .npmrc file), but the other thing you mentioned is a 2nd workaround & it did help me - installing yarn solved the problem.