Skip to content

Node 16 Support To Code-Server #4286

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
flameface opened this issue Oct 1, 2021 · 18 comments
Closed

Node 16 Support To Code-Server #4286

flameface opened this issue Oct 1, 2021 · 18 comments
Labels
feature New user visible feature

Comments

@flameface
Copy link

We wanted nodejs16 support to Code-Server in termux

@flameface flameface added the feature New user visible feature label Oct 1, 2021
@jawnsy
Copy link
Contributor

jawnsy commented Oct 1, 2021

Tagging related issues: #4258 #4225

Upstream vscode does not support Node.js 14, as I understand it, so that makes it difficult for us to guarantee reliable support for it.

One of the commenters mentioned that it's possible to install Node.js 14 on termux - have you tried that? Binary builds of code-server (which include an appropriate Node.js runtime) for a wider variety of ARM processors might help for this issue as well.

@jsjoeio jsjoeio added this to the Backlog milestone Oct 1, 2021
@oz-orz
Copy link

oz-orz commented Oct 10, 2021

You can install nodejs-lts on Termux, which is a 14.x version of nodejs. That will let you set up code-server.

@rudimediaz
Copy link

rudimediaz commented Nov 2, 2021

You can install nodejs-lts on Termux, which is a 14.x version of nodejs. That will let you set up code-server.

termux nodejs-lts now is v16

@tjatkowski
Copy link

Any update on that? I've been trying to install nodejs 14 on Tremux for many hours now with no success :(

@jsjoeio
Copy link
Contributor

jsjoeio commented Nov 4, 2021

None so far :( We'll let you know when we have any updates here. We're focusing on getting the next release but we can take a look in the next sprint!

@arHSM
Copy link

arHSM commented Nov 6, 2021

Any update on that? I've been trying to install nodejs 14 on Tremux for many hours now with no success :(

One way is to use proot-distro I've had some issues with directly installing code-server on termux but after installing ubuntu with proot-distro and following this guide to install nodejs 14.x and yarn on it I was able to setup code-server pretty easily by running curl -fsSL https://code-server.dev/install.sh | sh and proot-distro also mounts your /storage so you can just run termux-setup-storage outside of the proot-distro and allow termux access to your storage after that you can just start code server by code-server

EDIT : Just think that this could be helpful, the guide I mentioned work just fine but I tried playing with NVM it works pretty well and installing nodejs v14 is pretty easier than the above-mentioned guide.

jsjoeio referenced this issue Nov 8, 2021
nodejs installs v16 which is not compatible.  nodejs-lts currently uses v14.
@im-coder-lg
Copy link
Contributor

Any update on that? I've been trying to install nodejs 14 on Tremux for many hours now with no success :(

About this, you could add Node 14 by getting+unzipping the tar zip, and moving it to /usr/bin. Then you can get code-server 3.10.2 and use it.

@jsjoeio
Copy link
Contributor

jsjoeio commented Jan 14, 2022

@im-coder-lg have you had any luck with nvm? I installed it in Termux but now I'm getting this error:

~/downloads/release $ nvm use 14
Now using node v14.18.3 (npm v6.14.15)
~/downloads/release $ node -v
bash: /data/data/com.termux/files/home/.nvm/versions/node/v14.18.3/bin/node: No such file or directory

I'll have to see if I can figure out how to fix this

@im-coder-lg
Copy link
Contributor

I had luck on my Raspberry Pi, it worked flawlessly. Did you use the real nvm by nvm-sh?

@jsjoeio
Copy link
Contributor

jsjoeio commented Jan 18, 2022

Yup, that's the one I was using. Maybe I installed it wrong or am missing something in my PATH on Termux. Not sure. Oh well. Next time I'm in there I'll try again

@im-coder-lg
Copy link
Contributor

I ended up with the same NVM error on Termux. Hope it's fixed soon.

@arHSM
Copy link

arHSM commented Jan 20, 2022

I ended up with the same NVM error on Termux.

As stated on the NVM guide for Alpine linux

downloaded binary to run correctly - you'll likely see "...does not exist" errors if you try that.

https://github.com/nvm-sh/nvm#installing-nvm-on-alpine-linux
I doubt this can be compatibility issue with the environment termux runs, this is why i suggested using proot.

@jsjoeio
Copy link
Contributor

jsjoeio commented Jan 20, 2022

Ah, totally missed that! Thanks for the links @arHSM!

There is a -s flag for nvm install which requests nvm download Node source and compile it locally.

I guess I'll have to try this next time

@filiptronicek
Copy link

filiptronicek commented Jan 25, 2022

Maybe worth mentioning microsoft/vscode#137241 here, as they track some issues about this there.

Edit: planned release MS states is Feb 2022 (v1.65)

@jsjoeio
Copy link
Contributor

jsjoeio commented Jan 25, 2022

Oh awesome! Thanks @filiptronicek! 🙌 Glad to hear it's in progress at least.

@jsjoeio
Copy link
Contributor

jsjoeio commented Feb 25, 2022

Closing in favor of #4894

@jsjoeio jsjoeio closed this as completed Feb 25, 2022
@jawnsy
Copy link
Contributor

jawnsy commented Feb 25, 2022

@jsjoeio Ah, my bad, sorry about the duplicate! I should've searched first

@jsjoeio
Copy link
Contributor

jsjoeio commented Feb 25, 2022

@jawnsy no apologies needed - yours has more information and details on how to solve it :)

@jsjoeio jsjoeio removed this from the On Deck - High Priority milestone Mar 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New user visible feature
Projects
None yet
Development

No branches or pull requests

9 participants