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
; "user" config from /Users/[redacted]/.npmrc
//registry.npmjs.org/:_authToken = (protected)
; node bin location = /Users/[redacted]/.nvm/versions/node/v22.14.0/bin/node; node version = v22.14.0; npm local prefix = /Users/[redacted]/workspace/mpm/next-no-optionals; npm version = 11.1.0; cwd = /Users/[redacted]/workspace/mpm/next-no-optionals; HOME = /Users/[redacted]; Run `npm config ls -l` to show all defaults.
The text was updated successfully, but these errors were encountered:
42shadow42
changed the title
[BUG] npm install --omit=optional listed "optionalDependencies" in package.json
[BUG] npm install --omit=optional listed "optionalDependencies" in package-lock.json
Feb 23, 2025
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
When running
I get an entry for sharp in my package-lock.json which is not installed
Checking the folder structure sharp is NOT installed.
However, some nested dependencies below it ARE installed like ts-lib:
Expected Behavior
No dependencies in the sharp dependency tree should be installed, none of them should show up in the package-lock.json
Steps To Reproduce
Environment
The text was updated successfully, but these errors were encountered: