DEV Community

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

Collapse
lionelrowe profile image
lionel-rowe

This has already been the case for 4 years, and npm has already had 2 more major versions since then. Handy info for people who didn't know, but why present it as if it's a new feature?

Collapse
dailydevtips1 profile image
Chris Bongers Author

I don't present it as a new feature?
That's why I mentioned it's been available since NPM 5, but a lot of people still default to typing --save in their installs scripts, so I thought it would be a good idea to make this public announcement again.

Collapse
sanijalal profile image
Abd Sani

This is good info for me as there are tutorials out there in the wild that has the —save argument and I always wondered why it was needed. Now I know its no longer needed. Good to know.

Collapse
david_woolf profile image
David Woolf

Some people aren’t aware of features, and it was a nice rundown of different commands. The author didn’t say it was a new feature, he specifically mentioned which NPM version came with the update.

Collapse
stojakovic99 profile image
Nikola Stojaković • Edited on

Author probably didn't know about this until recently.

Collapse
dailydevtips1 profile image
Chris Bongers Author

I do know about it, but I saw a lot of tutorials still mention the --save command, so wanted to make this publicly know ❤️

Thread Thread
sami_hd profile image
Sami

Exactly! People still mention the old way to save dependencies even nowadays