You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.
After npm link-ing a module I apparently tried to link it to the very same directory. Maybe I did something similar, not sure about that, but it ended up like that:
C:\Users\samuel\Code\eslint-config-sk22\node_modules\eslint-config-sk22 is linked to C:\Users\samuel\Code\eslint-config-sk22.
So, almost every command related to npm fails with an RangeError similar to this:
RangeError: Maximum call stack size exceeded
at Array.forEach (native)
at exports.create (C:\Users\samuel\AppData\Roaming\npm\node_modules\npm\lib\install\node.js:33:25)
at C:\Users\samuel\AppData\Roaming\npm\node_modules\npm\lib\install\node.js:36:14
at Array.forEach (native)
at exports.create (C:\Users\samuel\AppData\Roaming\npm\node_modules\npm\lib\install\node.js:33:25)
at C:\Users\samuel\AppData\Roaming\npm\node_modules\npm\lib\install\node.js:36:14
at Array.forEach (native)
at exports.create (C:\Users\samuel\AppData\Roaming\npm\node_modules\npm\lib\install\node.js:33:25)
at normalizeTree (C:\Users\samuel\AppData\Roaming\npm\node_modules\npm\lib\install.js:377:5)
at Array.forEach (native)
at normalizeTree (C:\Users\samuel\AppData\Roaming\npm\node_modules\npm\lib\install.js:379:19)
at Array.forEach (native)
at normalizeTree (C:\Users\samuel\AppData\Roaming\npm\node_modules\npm\lib\install.js:379:19)
at Array.forEach (native)
at normalizeTree (C:\Users\samuel\AppData\Roaming\npm\node_modules\npm\lib\install.js:379:19)
at Array.forEach (native)
How can the CLI team reproduce the problem?
Create a directory named bug-test
In that directory, init a new npm module: npm init -y
Run npm link
Run npm link bug-test in the same directory
See that ./node_modules/bug-test is linked to .
Try to install a package, e.g. lodash: npm install lodash
I'm opening this issue because:
What's going wrong?
After
npm link
-ing a module I apparently tried to link it to the very same directory. Maybe I did something similar, not sure about that, but it ended up like that:C:\Users\samuel\Code\eslint-config-sk22\node_modules\eslint-config-sk22
is linked toC:\Users\samuel\Code\eslint-config-sk22
.So, almost every command related to
npm
fails with an RangeError similar to this:How can the CLI team reproduce the problem?
bug-test
npm init -y
npm link
npm link bug-test
in the same directory./node_modules/bug-test
is linked to.
lodash
:npm install lodash
supporting information:
npm -v
prints:5.0.4
node -v
prints:v8.0.0
npm config get registry
prints:https://registry.npmjs.org/
The text was updated successfully, but these errors were encountered: