DEV Community

Discussion on: How to get Visual Studio Code to run on Android with Termux -- Mar 2023 Update

Collapse
 
steledama profile image
Stefano Pompa

it seems wonderfull. Unfurtunately at the moment i receive this error:
code-server@3.12.0: The engine "node" is incompatible with this module. Expected version "= 14". Got "16.13.1"

Collapse
 
malius11 profile image
Malius

Same thing here. Did u manage to make it work?

Collapse
 
steledama profile image
Stefano Pompa

unfurtunately no!

Thread Thread
 
nimbuldev profile image
nimbul

You should just need to install version 14.x of Node. I'm not sure how to do this with a termux pkg, you'll have to dig.

I installed nvm and ran source /usr/share/nvm/init.nvm.sh and nvm install 14 on my proot Arch, not sure if that'll help you!

Collapse
 
kunalsain007 profile image
kunalsain007

try running this
pkg upgrade -y
pkg install nodejs python yarn binutils

v=$(node -v); v=${v#v}; v=${v%%.*};

FORCE_NODE_VERSION="$v" yarn global add code-server@4.6.0 --ignore-engines;