-
Notifications
You must be signed in to change notification settings - Fork 3k
Maximum call stack size exceeded when running npm shrinkwrap on 3.10.6 #13327
Comments
Same for me, using Stack trace:
|
Same here, using |
Also on less older nodes such as |
Definitely caused by #13308. After a bunch of stepping through the fancy new debugging available in Here is a minimal(-ish) repro: {
"name": "circular-shrinkwrap",
"description": "Circular Shrinkwrap",
"version": "1.0.0",
"repository": {},
"license": "MIT",
"dependencies": {
"babel-runtime": "^6.9.2"
},
"devDependencies": {
"babel-traverse": "^6.10.4"
}
} Notably, the trivial case of $ npm show --json babel-traverse dependencies
{
"babel-code-frame": "^6.8.0",
"babel-messages": "^6.8.0",
"babel-runtime": "^6.9.0",
"babel-types": "^6.9.0",
"babylon": "^6.7.0",
"debug": "^2.2.0",
"globals": "^8.3.0",
"invariant": "^2.2.0",
"lodash": "^4.2.0"
}
$ npm show --json babel-types dependencies
{
"babel-runtime": "^6.9.1",
"babel-traverse": "^6.9.0",
"esutils": "^2.0.2",
"lodash": "^4.2.0",
"to-fast-properties": "^1.0.1"
} Since babel-types and babel-traverse are circular,
|
Specifically, we now don't blow the stack on dev deps that have cycles. Fixes: #13327
What's the status on this issue? I'm having the same problem whenever I add --save |
Me too. Yep must be holiday time as v3.10.6 is a month old now |
Thanks for fixing this @iarna! 😃 Should we wait for something newer than 3.10.6 or is there some way to get an npm@latest that's newer than 3.10.6? Thanks. |
@mikemaccana |
Looks like this hasn't been released to |
@sompylasar See my comment above yours, it's still valid. For future reference, running something like |
@SimenB Sure, thanks, I've installed explicitly by version number after that. Did want to try |
I tried npm install -g npm@next, npm install -g npm@3.10.7, also npm update, still when I check version it says 3.10.6 and npm shrinkwrap still fails (Maximum call stack size exceeded), any thoughts? |
Node 6.4.0 and npm 3.10.3 solved this problem for me just now. Installed from OS X .pkg file downloaded directly from Nodejs.org. |
Well, the problem is, i can use node 6.2.2 max, as it's the supported version by aws elastic beanstalk. Does it mean I'm stuck with the bug? |
You can do |
I'm opening this issue because:
What's going wrong?
In npm 3.10.6, I'm attempting to run npm shrinkwrap and getting a "Maximum call stack size exceeded" error. I don't get this on 3.10.5
How can the CLI team reproduce the problem?
I deleted the node_modules folder.
Ran npm cache clean.
Ran npm install
Ran npm shrinkwrap
npm-debug.log: https://gist.github.com/JEBoothjr/8d724fe37047de5f0f9765190f933c73
supporting information:
npm -v
prints: 3.10.6node -v
prints: v0.10.36npm config get registry
prints: https://registry.npmjs.org/The text was updated successfully, but these errors were encountered: