Skip to content

[BUG] --install-strategy=linked doesn't link all dependencies #9138

@andrewalderson

Description

@andrewalderson

Is there an existing issue for this?

  • I have searched the existing issues

This issue exists in the latest npm version

  • I am using the latest npm

Current Behavior

Repo

Using the repo linked above, when I install node modules using --install-strategy=linked not all dependencies are linked. In particular the @angular/cli package has a dependency on @angular-devkit/architect but it is not linked.
Running a build produces the following error.

NX Cannot find module '@angular-devkit/architect'

Expected Behavior

I expect all dependencies to be linked.

Steps To Reproduce

  1. Using this repo
  2. With the existing .npmrc
  3. Run the npm start script
  4. See error. NX Cannot find module '@angular-devkit/architect'

Environment

  • npm: 11.12.0
  • Node.js: 24.11.1
  • OS Name: Ubuntu 24.04.3 LTS
  • System Model Name: Github Codespaces
  • npm config:
; "project" config from /workspaces/npm-install-strategy-linked-bug/.npmrc

install-strategy = "linked"

; node bin location = /usr/local/share/nvm/versions/node/v24.11.1/bin/node
; node version = v24.11.1
; npm local prefix = /workspaces/npm-install-strategy-linked-bug
; npm version = 11.12.0
; cwd = /workspaces/npm-install-strategy-linked-bug
; HOME = /home/codespace
; Run `npm config ls -l` to show all defaults.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugthing that needs fixingNeeds Triageneeds review for next steps

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions