DEV Community

Discussion on: How you enforce team members to use same node version

Collapse
 
recursivefaults profile image
Ryan Latta

You can control most of this through the package.json file of your projects. You can fix the versions of the libraries and I believe you can also specify a node version as well.

Pinning library versions at least to minor release is pretty standard. As for locking a node version that is a little less common, but possible.

You can also control this by writing a script that ensures a production version of your software uses all the correct versions, so there is less hope that a person that is too busy does it all correctly by hand.