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] linked strategy: npm ls reports undeclared workspaces as UNMET DEPENDENCY #9090
In linked mode, workspaces not explicitly declared as root dependencies are intentionally not hoisted to root node_modules/. However, npm ls reports them as UNMET DEPENDENCY and exits with error code 1.
This happens because the lockfile always records auto-created edges from root to all workspaces regardless of install strategy.
Expected Behavior
npm ls should understand that undeclared workspaces are intentionally not hoisted in linked mode and should not report them as missing. The command should exit with code 0.
Steps To Reproduce
Create a workspace project where only some workspaces are declared as root dependencies:
Activity