-
Notifications
You must be signed in to change notification settings - Fork 6k
Determine Node.js version pinning policy #4258
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I think we should revert and if a user really wants to use an unsupported version with yarn they can pass However, I believe we also have a post-install script that errors if you use non-v14 (I think we have this because, unlike yarn, npm does not enforce engines) so we should do something about that too. I think:
|
First off, thank you @jawnsy for the thorough, well-informed issue with a wealth of context. Next, I want to weigh in with agreement towards the sentiments proposed by @code-asher :
|
Another point of data: I was trying to run code-server installed with |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no activity occurs in the next 5 days. |
Background
yarn global add
if the running version of Node is newer than the version we are using (this was reported as Installing on Termux failed due to Node version #4225engines
constraint or provide an installation method usingnpm
oryarn
yarn install
or building code-server manually), since binary builds always include a version of Node.js 14, similar to the vscode upstream packages, which bundle a version of Node.js along with ElectronCurrent behavior
Desired behavior
This is what I hope to determine by starting this discussion. The outcome of this could be:
Status quo: we accept the risk that things may break at any point in the future, and allow installation on Node.js version
>= 14
This means that we will continue to allow users to install on Node.js 16 with no guarantee that it will continue to operate correctly and no notice in case it fails, aside from issues.
Pin to major version: we revert the change in fix(package.json): update node version requirements to >=14 #4230 and require a matching major version (14.x series only).
Users with a different Node.js version will no longer be able to install from source, but will instead need to install using the install.sh script or binary builds. This also means that users will be running the same version of Node.js that we test with.
Add test infrastructure: we expand our test configuration so that we have coverage for newer versions, so that we have additional confidence that code-server runs on 15.x and 16.x
cc @jsjoeio @vapurrmaid @TeffenEllis @code-asher
The text was updated successfully, but these errors were encountered: