Make Sure These Node Modules Are Those You Wanted
Sometimes, I don’t understand something, so I search the answer and sharing it is natural. Sometimes, I don’t think sharing it will be any use, until I realize that some people, even in my team, struggle with the same thing. This post is in the second category.
If you use NPM regularly, you must have noticed it adds tildes (~
) or carets (^
) in front of your dependencies’ version number.
You may also have noticed it creates a package-lock.json
file.
If you don’t know what any of these are, this post will shed some light.