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
Running npm link <pkg> fails with error links.map is not a function. Error log attached.
Note that running npm link in the package I want to link works fine and adds that package to global node_modules.
Also note that switching to npm v6 for only the link <pkg> command, i.e. npx npm@latest link <pkg>, but using v7 for everything else works and is my current work around.
- Added ELINKGLOBAL error code for when using --global
- Added tests for lib/link.js
- Do not reify, only load globals when linking a pkg to a local prefix
- Fixes: npm#1777
- Added ELINKGLOBAL error code for when using --global
- Added tests for lib/link.js
- Do not reify, only load globals when linking a pkg to a local prefix
- Fixes: npm#1777
- Added ELINKGLOBAL error code for when using --global
- Added tests for lib/link.js
- Do not reify, only load globals when linking a pkg to a local prefix
- Fixes: #1777
Current Behavior:
Running
npm link <pkg>
fails witherror links.map is not a function
. Error log attached.Note that running
npm link
in the package I want to link works fine and adds that package to global node_modules.Also note that switching to npm v6 for only the
link <pkg>
command, i.e.npx npm@latest link <pkg>
, but using v7 for everything else works and is my current work around.2020-09-08T13_50_33_197Z-debug.log
Expected Behavior:
For npm to link to the package version in global node_modules.
Steps To Reproduce:
<pkg>
directory runnpm link
npm link <pkg>
Environment:
The text was updated successfully, but these errors were encountered: