next.js icon indicating copy to clipboard operation
next.js copied to clipboard

Document recommended Node.js version / best practice for keeping it in sync across teams

Open timneutkens opened this issue 7 years ago • 7 comments

See https://github.com/zeit/next.js/pull/7961#issuecomment-514083852

timneutkens avatar Jul 23 '19 13:07 timneutkens

We should avoid suggesting nvm because it's very detrimental to shell boot up performance. Programs like n are much faster -- maybe it wouldn't hurt to say "if you have nvm, you can do this".

... but we should definitely favor other tools to help manage Node versions if that's part of the doc.

Should we only rely on the standard engines key in package.json?

Also, FWIW, this documentation also needs to point out if you deploy to a separate machine that version of Node must match as well.

Timer avatar Jul 23 '19 14:07 Timer

+1 to engines recommendation - to me, that addresses the issue of separate build+deploy Node versions, since it's stipulated as a specification for the app, not its build.

developit avatar Jul 23 '19 15:07 developit

/cc @mathiasbynens

developit avatar Jul 23 '19 15:07 developit

Do you need help with this?

If so, would be happy to pick it up :)

Cc @timneutkens

imanushree avatar Oct 01 '19 11:10 imanushree

@anushreesubramani definitely! Feel free to send a PR 💯

timneutkens avatar Oct 01 '19 12:10 timneutkens

The usage of the current Node.js version will be mentioned in the new docs. engines and documenting how to keep it in sync is not, but it's also a feature not yet implemented.

lfades avatar Nov 23 '19 00:11 lfades

This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

balazsorban44 avatar Jan 30 '22 17:01 balazsorban44