-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Yarn installation fails incompatible engine 'node' #4415
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
edit : Using the ignore engines flag : yarn global add code-server --ignore-engines |
Node v14 is the newest version supported by code-server at this time.
Argh, this seems to be blocking a lot of people. Can you check the node-argon2 docs here? |
Unfortunately v14 isn't available anymore according to node the new nodejs-lts v16 started 5 days ago, and I can't find the old package in archives, i think you will have to somehow support the new lts?
I had a backup of my previous install, i will stick with it for now with code-server v3.9.3, i will test again with steps from node-argon2 when I'm free, thanks guys for your efforts |
Hmm... can you try using
Sounds good! |
Having the same issue here. |
@anonimo82 have you tried using v14? |
No, how can I? |
@anonimo82 use |
Chiming in as I'm also attempting to do a new install with a similar environment.
I've also attempted to use |
@jsjoeio consider I'm working with Termux, package nvm is not available there |
@tmgast thanks for all the details! I wasn't aware of that. Shoot, well I'm at a stand still then. I'm not sure exactly what we can do here 🤔 I'm going to mark this as blocked until we can find a workaround. cc @code-asher in case you see any obvious solutions. |
Workaround: use VHEditor https://github.com/vhqtvn/VHEditor-Android By the way, all we need to do is targeting the latest node.js version. I hope it's easy enough Edit: For the records, here is the issue Note I'm using nodejs-lts package from Termux repository |
We are stuck using the version of Node that VS Code supports
unfortunately (I did test 16 just to see but it was not compatible).
|
I also tried nvm and the --ignore-engines flag while installing via yarn none of them worked kindly make code-server compatible with v16 of node 🙏 |
@RoyGalaxy, @code-asher told VS-Code is not compatible with that Node.js version yet, so the least we can do is just wait. Or, if you use Termux, persuade theyr developers to downgrade Node package, or make them offer a build 14 as a separate package, which is what I'm trying to do here: termux/termux-packages#7930 |
Look at the link, it now works! |
Ah yeah I should have mentioned you can force this with:
FORCE_NODE_VERSION=16 yarn global add code-server --ignore-engines
Anything above 14 is untested so use at your own risk! :)
|
In fact, I'm having troubles with extensions, beside this, it works Look at this: termux/termux-packages#7930 (comment) |
nodejs installs v16 which is not compatible. nodejs-lts currently uses v14.
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. |
Btw, i digged in my old backups i found code-server with node 14 installed I'm using it and it's working fine, I want to pack a .deb of node 14 for sharing if any one wants it, also so I can install on other devices, anyone know if it's possible to pack a .deb package of node? |
No idea! But I will close this for now. |
OS/Web Information
code-server --version
: latestSteps to Reproduce
3.yarn global add code-server
Expected
Install?
Actual
yarn complains about nodejs version expected v14 (the old lts)
The problem is the nodejs-lts is now v16 how can i get v14? Should I go with the standalone install?
Screenshot
The text was updated successfully, but these errors were encountered: