Open DuckDuckDuckGoose opened 2 years ago
What version of node are you installing?
What version of nvm do you have? Please always fill out the entire issue template - it's all there for a reason.
IIRC nvm install node does latest node version which I believe is 17.3.0 According to nvm ls-remote
0.39.1
Given that you have an rpi, and there's no binaries available, and those are low-cpu devices by design, it's unsurprising to me that node would take that long to compile.
Unless you download node directly and get different results, I'm not sure what nvm can do to help here.
Ok, fair. It's still going making it nearly 4 hours. I appreciate RPI`s don't have strong CPU's but that just seems excessive.
I remember downloading node a while ago without nvm and it was less than an hour. I just get the feeling something not gone quite right. Given the circumstances are basically the same, IE nothing else really running so it gets nearly the whole CPU, same SD card, same available space on SD card, and exactly same RPI.
Anyway, thanks for you help, I like using nvm on windows but will probably have to end up just avoiding it on RPI unless you have any suggestions / tips?
Wait, what do you mean nvm on windows - only the most recent version supports cygwin/git bash, and WSL hasn’t been supported for long before that. If you mean nvm-windows, that’s an unrelated project.
What I’d try on your RPI is to install older even major versions, and see if you can find one that’s fast. It’s possible that compilation changes or architecture support has changed over time.
Experiencing this same issue, which I don't think has anything to do with nvm specifically. In my case I'm pretty sure it's because I have a 32bit system (Ubuntu 18.04.5 LTS). Node no longer builds 32bit binaries apparently (sorry lost my source for that info). I'm approaching 3 hours, now. If this doesn't work out I think my only option is to hunt down a pre-built binary and try to figure out how to install that (I assume it's not as simple as just putting it on the path).
I did just take a look at the nvm install
options and noticed a -b
option to install from binary only? Does that work in this scenario?
That is definitely the issue; i don’t think they even make 32 bit systems anymore.
-b won’t help you since node isn’t producing 32 bit binaries anymore.
I have a intel atom 32bit machine with Lubuntu and took me more than 48 hours to compile from source code node 15 Up to my knowledge, this compiling process, from source code, can take a long time, and I have proved it is so.
@hrivera2014 nobody’s disputed that; the issue is that 32bit machines are ancient and node itself no longer supports them.
Rasbian (Linux)
nvm ls
output:Just system
How did you install
nvm
?With curl command in .readme
What steps did you perform?
nvm install node
What happened?
Been 2 hours and it just keeps running g++ stuff
What did you expect to happen?
Node to actually install in maybe 10 minutes max?
Is there anything in any of your profile files that modifies the
PATH
?Nope