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
Nodejs not working on latest version (Illegal instruction) #1482
Comments
|
#1473 has some specific information that is relevant to this issue. The problem isn't with node per se, rather its use of an unimplemented instruction. |
@tbodt, would you be able to comment on this? |
Not @tbodt, but there isn't really much to say here beyond "node uses an instruction unimplemented in iSH, and until someone adds that it won't work". |
Plus there is a workaround. Use an Alpine 3.12.9 mini root and it works fine, at least through version 14.5.0 which is included in apk nodejs-current. I suspect newer versions of node would work as well if compiled under 3.12.9 |
I just realized this unimplemented instruction is only needed in the later versions of node. For those who can work with an earlier version of node (8.14.0-r0). Add https://dl-cdn.alpinelinux.org/alpine/v3.8/main to /etc/apk/repositories apk update Node works fine. |
Great, thank you! But I looking for way to install node 12+ for trying to run code-server |
The one compiled for 3.12.9 should work as well. I believe it's version 14 |
Actually, in 3.12.9 node-current is version 14.5. The standard node version is 12.22 |
I had to downgrade the repositories to $ cat /etc/apk/repositories
https://dl-cdn.alpinelinux.org/alpine/v3.12/main
https://dl-cdn.alpinelinux.org/alpine/v3.12/community Then by running: apk update && apk add nodejs npm I got |
but why this error on so many packages on iSH. any debugging foxes here able to debug? how2stacktrace? |
It's correct, but NPM not run. 👎 |
I have added into
Than
|
Very nice ... I'm going to try |
iSH 1.3 is out, which has fixes for this issue. Please try it out and file new issues with what you encounter! |
Works for me! Congrats on the new release y'all! |
Thank you so much |
To reproduce:
apk add nodejs
node
3 stub syscall 383
3 stub syscall 383
6 stub syscall 383
6 stub syscall 383
6 stub syscall 383
6 stub syscall 383
7 stub syscall 383
7 stub syscall 383
7 stub syscall 383
7 stub syscall 383
5 stub syscall 383
5 stub syscall 383
8 stub syscall 383
8 stub syscall 383
8 stub syscall 383
8 stub syscall 383
8 stub syscall 383
8 stub syscall 383
8 stub syscall 383
8 stub syscall 383
8 stub syscall 383
9 stub syscall 383
9 stub syscall 383
9 stub syscall 383
9 stub syscall 383
9 stub syscall 383
9 stub syscall 383
9 stub syscall 383
9 stub syscall 383
9 stub syscall 383
5 stub syscall 383
5 stub syscall 383
5 stub syscall 383
5 stub syscall 383
10 stub syscall 383
10 stub syscall 383
10 stub syscall 383
10 stub syscall 383
10 stub syscall 383
10 stub syscall 383
10 stub syscall 383
10 stub syscall 383
10 stub syscall 383
10 stub syscall 383
10 stub syscall 383
10 stub syscall 383
10 stub syscall 383
10 stub syscall 375
10 illegal instruction at 0x56fa1b2d: 66 0f c2 d1 02 66 0f 54
5 stub syscall 383
5 stub syscall 383
The text was updated successfully, but these errors were encountered: