DEV Community

Discussion on: You don't need --save anymore for NPM installs

Collapse
yoursunny profile image
Junxiao Shi

I wish NPM can install production and development dependencies in one command, like this:

npm i -P react react-dom -D @types/react @types/react-dom
Enter fullscreen mode Exit fullscreen mode
Collapse
727021 profile image
Andrew Schimelpfening

That would be awesome. I wonder if that’s been suggested on the npm cli GitHub repo. It might be worth checking if there’s already an issue for it.

Collapse
yoursunny profile image
Junxiao Shi