-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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 install --only=dev doesn't install dev modules also present in regular dependencies #477
Comments
i have same issue, and
POC:
preview: 100% reproduction. Related discussions: |
this is indeed a real issue -- npm -v 6.13.7 the option --only=dev is told to you when you use --dev but --only=dev does not work at https://docs.npmjs.com/cli/install the specification is --save-dev which does work please update the cli error message... --save-dev works |
@xqin to me that looks like it's working. Still think it's buggy as I can't for the life of me get Seems like packages in your |
The described behavior is still happening, after multiple years of this bug surfacing again and again. How can this still happen in the default package manager for node modules? It is really baffling. In my case I have a
In my case the
and
Where no matter how I try to only install dev dependencies, I end up missing Only when running |
@ZelphirKaltstahl can you try with npm 7? |
@ljharb With NPM For reference the exact command I used is:
Inside the project's directory of course. (Note: I did not check, whether it installed more than only the dev dependencies.) |
It always worked under simple conditions. For me it wouldn't work if I had this scenario:
|
This issue npm/npm#12184 is still actual.
The text was updated successfully, but these errors were encountered: