TheOdinProject / javascript-exercises

MIT License
1.28k stars 34.52k forks source link

Project Root: Add minimum npm & node version requirements #478

Closed pixie-cheeks closed 5 months ago

pixie-cheeks commented 5 months ago

This change will prevent any old node or npm version from installing any packages. With this, npm will throw an error and exit immediately. This is to prevent the accidental use of unsupported versions which might cause some issues that are hard to pin-point.

Because

A person on Discord was getting some syntax errors when running Jest after installing the packages. It took us a while to figure out that the person was using a really old version of node. The additions in this PR will prevent something like this from happening. If someone tries to run the npm install command with an outdated node/npm version inside the repo, then npm will exit with an error, informing the user their version is too low and what the minimum required version is.

This PR

Additional Information

Pull Request Requirements