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 }}
Repository navigation
[BUG] install-strategy=linked: npm link <path> (local path) fails with ENOENT in global node_modules #9621
This is not just a request to bump a dependency for a CVE
This is not solely a request to bump a dependency for a CVE
Current Behavior
Under install-strategy=linked, npm link <path> (linking a local directory by path) fails with npm error code ENOENT for <global-prefix>/lib/node_modules/<pkg>/package.json — it looks in the global node_modules instead of the provided path (exit 254). The global-name form npm link <pkg> works. The hoisted strategy handles the path form.
Expected Behavior
npm link <path> should link the package at the given filesystem path under the linked strategy, matching the hoisted strategy and the handling of file:<path> dependencies.
Activity
manzoorwanijk commentedon Jun 25, 2026
Correction: This was a bug on npm v10, not v12, and has already been fixed by #9167.