-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed
Labels
Bugthing that needs fixingthing that needs fixingRelease 9.xwork is associated with a specific npm 9 releasework is associated with a specific npm 9 releaseinstall-linked-strategy
Description
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
Running npm install --install-strategy=linked immediately following an invocation of the same command isn't as fast as the default hoisted mode. It appears to be running a clean installation of the entire package tree each time.
This also seems to impact adding packages, which means that adding a package takes as much time as installing without a node_modules folder.
Expected Behavior
Subsequent calls to npm install --install-strategy=linked don't do as much work as the initial call, resulting in a faster run.
Steps To Reproduce
npm install(to prime the local cache)rm -rf node_modules && time npm install --install-strategy=linkedtime npm install --install-strategy=linkedrm -rf node_modules && time npm installtime npm install
Environment
- npm: 9.4.0
- Node.js: v16.19.0
- OS Name: Linux
- System Model Name: N/A
- npm config:
; node bin location = /usr/bin/node
; node version = v16.19.0
; npm local prefix = /home/dstaley/git/dstaley/npm-linked-slow-install
; npm version = 9.4.0
; cwd = /home/dstaley/git/dstaley/npm-linked-slow-install
; HOME = /home/dstaley
; Run `npm config ls -l` to show all defaults.Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Bugthing that needs fixingthing that needs fixingRelease 9.xwork is associated with a specific npm 9 releasework is associated with a specific npm 9 releaseinstall-linked-strategy