Skip to content

code-server: incompatible node version in Termux #4500

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

Closed
ghost opened this issue Nov 12, 2021 · 6 comments
Closed

code-server: incompatible node version in Termux #4500

ghost opened this issue Nov 12, 2021 · 6 comments

Comments

@ghost
Copy link

ghost commented Nov 12, 2021

OS/Web Information

  • Web Browser:
  • Local OS:
  • Remote OS:
  • Remote Architecture:
  • code-server --version:

Steps to Reproduce

  1. apt update && apt full-upgrade -y
  2. apt install nodejs yarn -y
  3. yarn global add code-server

Expected

Code-Server should be installed.

Actual

Node version seems to be incompatible, so Code-Server is not getting installed.

Logs

~ $ yarn global add code-server
yarn global v1.22.15
[1/4] Resolving packages...
[2/4] Fetching packages...
error code-server@3.12.0: The engine "node" is incompatible with this module. Expected version "= 14". Got "16.13.0"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/global for documentation about this command.
~ $

Screenshot

Notes

This issue can be reproduced in VS Code: Yes/No

@sascha1337
Copy link

same. ffi bindings wont compile, in case of patched version in package.json. sad. maybe manually install nodejs tarball with linked musl arm64 libc

@ghost
Copy link
Author

ghost commented Nov 12, 2021

same. ffi bindings wont compile, in case of patched version in package.json. sad. maybe manually install nodejs tarball with linked musl arm64 libc

Huh. When will code server support Node 16? ☹️

@jsjoeio
Copy link
Contributor

jsjoeio commented Nov 12, 2021

Hey all! We're aware of this and hope to have a fix out soon! We have to prioritize some other things but please follow these issues for updates:

@jsjoeio jsjoeio closed this as completed Nov 12, 2021
@AFOEK
Copy link

AFOEK commented May 5, 2023

Hi, I got same error but I had different version node error. Pics included
image

@code-asher
Copy link
Member

code-server depends on Node 16 so you will need to downgrade Node or attempt to bypass the restriction.

FORCE_NODE_VERSION=19 yarn global add --ignore-engines code-server to bypass but there is no guarantee code-server will run correctly (or at all) or even build.

@byomess
Copy link

byomess commented Jul 10, 2023

code-server depends on Node 16 so you will need to downgrade Node or attempt to bypass the restriction.

FORCE_NODE_VERSION=19 yarn global add --ignore-engines code-server to bypass but there is no guarantee code-server will run correctly (or at all) or even build.

Worked for me. Thank you Mr.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants