Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] npm update seems always installing devDependencies #3729

Open
1 task done
Antonius-S opened this issue Sep 9, 2021 · 1 comment
Open
1 task done

[BUG] npm update seems always installing devDependencies #3729

Antonius-S opened this issue Sep 9, 2021 · 1 comment
Labels
Bug thing that needs fixing Priority 2 secondary priority issue Release 7.x work is associated with a specific npm 7 release

Comments

@Antonius-S
Copy link

Antonius-S commented Sep 9, 2021

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

npm update seems always installing devDependencies regardless of the --omit and NODE_ENV values

Expected Behavior

devDependencies are ignored

Steps To Reproduce

  1. package.json:
{
  "name": "test",
  "version": "0.0.0",
  "description": "test",
  "main": "index.js",
  "engines": {
    "node": ">= 10.0.0"
  },
  "devDependencies": {
    "mocha": "*"
  }
}

save in some folder and run command line there
2. npm up --omit=dev
4. See all the mocha stuff installed
5. set NODE_ENV=production && npm up --omit=dev
6. See the same

Environment

  • OS: Windows
  • Node: v12.22.6
  • npm: 7.22.0
@Antonius-S Antonius-S added Bug thing that needs fixing Needs Triage needs review for next steps Release 7.x work is associated with a specific npm 7 release labels Sep 9, 2021
@lukekarrys lukekarrys added Priority 2 secondary priority issue and removed Needs Triage needs review for next steps labels Sep 23, 2021
@mbStavola
Copy link

I was able to reproduce this on v6 and v8 too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug thing that needs fixing Priority 2 secondary priority issue Release 7.x work is associated with a specific npm 7 release
Projects
None yet
Development

No branches or pull requests

3 participants