Re:Building a Minimalistic Virtual Machine
by maxime_cb on Saturday February 25, 2023 @01:30PM
(#34939134)
Besides the issue of whether you pin or don't pin your dependencies, the problem is that node packages can depend on external native code. You can have several more layers of dependencies in there. If, for any reason, those native packages won't install/run on your machine, your dependencies can still break under you, even if you pin them. Python and Ruby have the same vulnerability when it comes to dependencies breaking.
You can simply remove the ^ symbol from your versions listed in package.json and it will use exactly that version you originally added.