Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maximum call stack size exceeded #7674

Closed
cfurst opened this issue Sep 12, 2019 · 1 comment
Closed

Maximum call stack size exceeded #7674

cfurst opened this issue Sep 12, 2019 · 1 comment

Comments

@cfurst
Copy link

cfurst commented Sep 12, 2019

Describe the bug

npm install -g react-script and npm install --save --save-exact --loglevel error react react-dom react-scripts are exceeding nodejs' call stack maximum

$ npm install react-scripts
npm WARN deprecated left-pad@1.3.0: use String.prototype.padStart()
npm WARN deprecated flatten@1.0.2: I wrote this module a very long time ago; you should use something else.
npm ERR! Maximum call stack size exceeded

npm ERR! A complete log of this run can be found in:
npm ERR!    2019-09-12T16_36_11_890Z-debug.log

The contents of that log contains the following:

3329 silly fetchPackageMetaData error for @xtuc/long@4.2.2 404 Not Found - GET https://registry.npmjs.org/@xtuc%2flong - User not found
3330 verbose stack RangeError: Maximum call stack size exceeded
3330 verbose stack     at RegExp.test (<anonymous>)
3330 verbose stack     at isDepOptional (.nvm/versions/node/v10.15.3/lib/node_modules/npm/lib/install/deps.js:423:45)
3330 verbose stack     at failedDependency (.nvm/versions/node/v10.15.3/lib/node_modules/npm/lib/install/deps.js:432:9)
3330 verbose stack     at failedDependency (.nvm/versions/node/v10.15.3/lib/node_modules/npm/lib/install/deps.js:448:9)
3330 verbose stack     at failedDependency (.nvm/versions/node/v10.15.3/lib/node_modules/npm/lib/install/deps.js:448:9)
3330 verbose stack     at failedDependency (.nvm/versions/node/v10.15.3/lib/node_modules/npm/lib/install/deps.js:448:9)
3330 verbose stack     at failedDependency (.nvm/versions/node/v10.15.3/lib/node_modules/npm/lib/install/deps.js:448:9)
3330 verbose stack     at failedDependency (.nvm/versions/node/v10.15.3/lib/node_modules/npm/lib/install/deps.js:448:9)
3330 verbose stack     at failedDependency (.nvm/versions/node/v10.15.3/lib/node_modules/npm/lib/install/deps.js:448:9)
3330 verbose stack     at failedDependency (.nvm/versions/node/v10.15.3/lib/node_modules/npm/lib/install/deps.js:448:9)
3330 verbose stack     at failedDependency (.nvm/versions/node/v10.15.3/lib/node_modules/npm/lib/install/deps.js:448:9)
3330 verbose stack     at failedDependency (.nvm/versions/node/v10.15.3/lib/node_modules/npm/lib/install/deps.js:448:9)
3330 verbose stack     at failedDependency (.nvm/versions/node/v10.15.3/lib/node_modules/npm/lib/install/deps.js:448:9)
3330 verbose stack     at failedDependency (.nvm/versions/node/v10.15.3/lib/node_modules/npm/lib/install/deps.js:448:9)
3330 verbose stack     at failedDependency (.nvm/versions/node/v10.15.3/lib/node_modules/npm/lib/install/deps.js:448:9)
3330 verbose stack     at failedDependency (.nvm/versions/node/v10.15.3/lib/node_modules/npm/lib/install/deps.js:448:9)
3331 verbose cwd reactTutorial
3332 verbose Darwin 18.7.0
3333 verbose argv ".nvm/versions/node/v10.15.3/bin/node" ".nvm/versions/node/v10.15.3/bin/npm" "install" "react-scripts"
3334 verbose node v10.15.3
3335 verbose npm  v6.11.2
3336 error Maximum call stack size exceeded
3337 verbose exit [ 1, true ]

Did you try recovering your dependencies?

My project is not broken as we are unable to create it because of the issue described above: the call stack is exceeded. Has anyone encountered this before with nodejs 10.15 which I believe to be LTS.

Which terms did you search for in User Guide?

call stack

Environment

we can't install the app... your installer exceeds the maximum call stack.

Steps to reproduce

(Write your steps here:)

  1. make sure you are using nodejs 10.15.3 with npm 6.11.2
  2. run `npm install --save --save-exact --loglevel error react-scripts
  3. npm should fail citing exceeding the maximum call stack.

Expected behavior

the package to be installed

Actual behavior

NPM fails, NPX fails saying that npm can't install react, react-dom and react-scripts

Reproducible demo

There is no project because we can't install this script. 🤷‍♂️I'm wondering if there might be nodejs settings I need to make here.. was wondering if you had seen this behavior before and what adjustment you might have made to make npm/nodejs more adaptable to this.

@cfurst
Copy link
Author

cfurst commented Sep 12, 2019

and looking here gave the suggestion to remove (or move) the .npmrc file in my home directory and... voila.. 🤦‍♂️guess we can just leave this up for Captain Hindsight because people need to know what they should have done.

@cfurst cfurst closed this as completed Sep 12, 2019
@lock lock bot locked and limited conversation to collaborators Sep 17, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant