question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

npx create-react-app my-app --- > npm ERR! Maximum call stack size exceeded

See original GitHub issue

Is 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:)

  1. I’m trying to create new React application with npx create-react-app, but I get the following error:
  2. Uninstall node, npm, create-react-app and back install and dit it not work
  3. 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: screen shot 2018-10-05 at 11 38 13 pm

Reproducible Demo

(Paste the link to an example project and exact instructions to reproduce the issue.)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

21reactions
ervandracommented, Oct 11, 2018

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 and create-react-app awesome-app with npm or yarn as well

The culprit was .npmrc file that was located on your user home dir Users/you/.npmrc. once you remove the files, or remove the contents you should be able to init the CRA2 now.

Happy hacking!

2reactions
shmuelfcommented, Oct 24, 2018

Seems like an npm bug but glad that there is a workaround.

If all else fails, install Yarn, and CRA will use Yarn instead.

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

create-react-app RangeError: Maximum call stack size ...
I find the solution to my problem. my problem was I tried to creating new react app using npm create-react-app app-name in CMD...
Read more >
How to fix npm maximum call stack size exceeded error
First, make sure that you are using the latest NodeJS and npm versions for your project. Now the npm install command sometimes builds...
Read more >
maximum call stack size exceeded typescript - You.com
The RangeError: Maximum call stack size exceeded occurs when a function is being called so many times that the invocations exceed the call...
Read more >
npm install fails with "npm ERR! Maximum call stack size ...
Cannot install theme modules - npm install fails with "npm ERR! Maximum call stack size exceeded". Hi! I'm having quite a bit of...
Read more >
用npx create-react-app 文件名创建项目的时候报Maximum call ...
Maximum call stack size exceeded 解决方法1.删除node_module文件夹和package-lock.json文件,再重新npm install到了这一步,80%的用户都能解决这个 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found