[Content] The need to require a Node.js version is not specified in JavaScript Guidelines #666
Labels
📖 aspect: docs
Concerns the documentation in the repository
✨ goal: improvement
Improvement to an existing feature
help wanted
Open to participation from the community
🟩 priority: low
Low priority and doesn't need to be rushed
🏁 status: ready for work
Ready for work
Problem
Currently there is not a consistent method across repositories for requiring a minimum Node.js version. This can and will create issues for contributing to repositories.
Description
This can be solved by adding guidance in the Javascript Guidelines to add:
"engines" : { "npm" : ">=x.y.z","node" : ">=x.yz"}
to the package.json file as a baseline standardAlternatives
Additionally, you can edit the
.npmrc
file to contain:but this provides inconsistent behavior, as local devs may have their own pre-existing
.npmrc
file.A
.nvmrc
route is also possible and might have better outcomesAdditional context
Implementation
The text was updated successfully, but these errors were encountered: