Hacker News new | ask | show | jobs
by Silhouette 3744 days ago
Instead, add it to your package.json yourself with the exact specific version you want

Unfortunately, the same problem then arises for your dependencies. If any of them don't specify exact versions, you are still vulnerable to getting uncontrolled changes.

This is why things like npm shrinkwrap exist, but it's still crazy that NPM's default behaviour is the uncontrolled case.

1 comments

Yes, libraries should specify exact versions as well, it's insane that they don't.