[BUG] v8.6.0 --only=prod resolved for devDependencies #4669
Labels
Bug
thing that needs fixing
Priority 1
high priority issue
Release 8.x
work is associated with a specific npm 8 release
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
devDependencies are checked and fails the build even when
--only=prod
or--omit=dev
is specified, which is not the behavior in previous 8.5.x versions, and is probably not a correct behavior as--only=prod
seem to mean only install prod dependenciesExpected Behavior
Should reproduce the behavior of npm 8.5.x and 8.4.x,
npm i --only=prod
should succeed to install thedependencies
block containingaxios
only.Steps To Reproduce
Reproduce with this docker file
Incorrect output with
npm@8.6.0
:Output with
npm@~8.5.0
Environment
The text was updated successfully, but these errors were encountered: