-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Closed
Labels
Bugthing that needs fixingthing that needs fixingNeeds Triageneeds review for next stepsneeds review for next stepsRelease 8.xwork is associated with a specific npm 8 releasework is associated with a specific npm 8 release
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
Using the following dependencies/overrides in package.json:
"dependencies": {
"appium": "^1.22.3",
"mkdirp": "0.5.5",
"optimist": "0.6.1"
},
"overrides": {
"minimist": ">=1.2.6"
}All versions of minimist under appium fail to get overridden. The minimist versions under mkdirp@0.5.5 (which is also a transitive dependency of appium) and optimist@0.6.1 are correct.
Running npm ls minimist yields the following output:

Expected Behavior
All instances of minimist should be overridden to the specified version.
Steps To Reproduce
- Use the above dependencies/overrides in
package.json npm inpm ls minimist
Environment
- npm: 8.10.0
- Node.js: 14.19.1
- OS Name: macOS Monterey 12.2.1 (also tested on Windows 10)
- npm config:
; node bin location = /Users/egallagher/.nvm/versions/node/v14.19.1/bin/node
; node version = v14.19.1
; npm local prefix = /Users/egallagher/.npm/_logs
; npm version = 8.10.0
; cwd = /Users/egallagher/.npm/_logs
; HOME = /Users/egallagher
; Run `npm config ls -l` to show all defaults.Metadata
Metadata
Assignees
Labels
Bugthing that needs fixingthing that needs fixingNeeds Triageneeds review for next stepsneeds review for next stepsRelease 8.xwork is associated with a specific npm 8 releasework is associated with a specific npm 8 release