Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

npm install --no-save flag #14285

Closed
ssylvia opened this issue Oct 14, 2016 · 3 comments
Closed

npm install --no-save flag #14285

ssylvia opened this issue Oct 14, 2016 · 3 comments

Comments

@ssylvia
Copy link

ssylvia commented Oct 14, 2016

What's the feature?

Add an options to forcibly not save a dependency to package.json when running npm install

What problem is the feature intended to solve?

Since users are able to use this config npm config set save true to have all their dependencies saved by default, we need a way to optionally not save some of them. I have a script that locally installs some extra dependencies for dev purposes only but I do not want them saved.

Is the absence of this feature blocking you or your team? If so, how?

It's an extra step to verify packages don't get saved

Is this feature similar to an existing feature in another tool?

I don't think so

Is this a feature you're prepared to implement, with support from the npm CLI team?

No

@kenany
Copy link
Contributor

kenany commented Oct 14, 2016

This already works for me. Have you tried this yourself?

@ssylvia
Copy link
Author

ssylvia commented Oct 17, 2016

Yes, sorry this does work. I could find any documentation around it so I assumed it didn't exist.

@ssylvia ssylvia closed this as completed Oct 17, 2016
@kenany
Copy link
Contributor

kenany commented Oct 17, 2016

@ssylvia Yeah, you can append "no" to any config to make it false, so --no-save, --no-optional, --no-progress all set their respective configs to false.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants