Before version 5, npm simply installed a package under node_modules by default. When the following command is used with npm install this will save all your installed core packages into the dependency section in the package.json file If you don’t specify a version, npm will install the latest stable version by default.
Victorialovexoxo : u/TightCake6194
However, from npm version 5.0.0 this is no longer needed.
Npm install takes 3 exclusive, optional flags which save or update the package version in your main package.json
Package will appear in your dependencies. It highlights the evolution of npm and how developer feedback and needs drive changes in such tools.