We develop in Angular with Visual Studio Code using GitHub as a code repository. This works fine, but recently we had a problem due to one of the developers having a different version of a certain library. Since installing with npm doesn't require to specify the version (it installs the latest) he ended up with a version different from the other developers.
One way to solve the problem is to put all the libraries in GitHub, but that seems overwhelming. What are the best practices to have all developers use the same version of javascript libraries?
package.json(e.g."8.0.0") or 2) If you want to stick with SemVer specs to update minor and patch versions (e.g."^8.0.0"), commit yourpackage-lock.jsonfile.