Skip to content

[BUG] npm install ignores --production=false (7.7.0) #2936

@Audio

Description

@Audio

Current Behavior:

NODE_ENV=production npm install --production=false doesn't install project's devDependecies.

Expected Behavior:

NODE_ENV=production npm install --production=false installs devDependencies according to docs:

To install all modules listed in both dependencies and devDependencies when NODE_ENV environment variable is set to production, you can use --production=false.

Steps To Reproduce:

  1. NODE_ENV=production npm install --production=false
  2. dev dependencies are missing (npm ls prints UNMET DEPENDENCY for them)

Environment:

  • OS: MacOS BigSur 11.2.1
  • Node: 14.15.1
  • npm: 7.7.0

Metadata

Metadata

Assignees

Labels

Bugthing that needs fixingPriority 0will get attention right awayRelease 7.xwork is associated with a specific npm 7 release

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions