I see --save
mentioned most of the time when installing packages. What does it mean in English? What do I lose if I don't use --save
? Is it ok to just apply this option every time?
docs.npmjs.com/cli/install merely describes it as:
-S, --save: Package will appear in your dependencies
--Afternote:
I read the other question suggested as a duplicate, and I think that OP and myself were actually asking about what updating dependencies mean and not what what --save
mean. It quite clear that --save
means to save something, but for what purpose is the more important question. The documentation does not mention any reason. The answer given here by @nicovank helped me and I learned that it is for the purpose of duplicating the project in future, if I have not understood wrongly.