If I type "npm install --save foo", it gives me "^1.2.3" which says "everything compatible with the current version".
If you don't follow semver specification and make incompatible changes, well, :(
You also have the wonderful npm shrinkwrap command (https://docs.npmjs.com/cli/shrinkwrap) which locks you down similar to a Gemfile.lock, but inline with how the npm world works.
Thanks for tooting your horn about being senior while also being factually incorrect about the default behavior of node and not knowing you can use shrinkwrap to leave the loose version specifications but also commit what they actually resolved to on your machine.
If I type "npm install --save foo", it gives me "^1.2.3" which says "everything compatible with the current version".
If you don't follow semver specification and make incompatible changes, well, :(
You also have the wonderful npm shrinkwrap command (https://docs.npmjs.com/cli/shrinkwrap) which locks you down similar to a Gemfile.lock, but inline with how the npm world works.
Thanks for tooting your horn about being senior while also being factually incorrect about the default behavior of node and not knowing you can use shrinkwrap to leave the loose version specifications but also commit what they actually resolved to on your machine.