Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8042

Troubleshooting • NodeJS failing to install.

$
0
0
In 2019 I started using NodeJS. It took a few minutes to install and I’ve been using it on a few Pi since then. Now one of the CF cards has failed and I’m trying to replace it. I started with a new card and using Raspberri PI Imager loaded “Raspberry Pi OS (Legacy, 32-BIT) FULL”.

I’ve tried 3 methods to load Node.js and they all fail:

1 https://nodejs.org/en/download (chose Linux)
- chose FNM, curl – that worked,
- fnm install node 22 – “/.local/share/fnm/fnm: cannot execute binary file: Exec format error”
- tried repeat – same
2. same site, chose nvm
- curl… - that’s fine
- nvm install 22 - that starts compiling things, and ran for 11 hours. There was a network upset and my putty session broke.
- I started it again, don’t know if it was starting from the beginning or carrying on.
3. https://github.com/nvm-sh/nvm
- curl… - that’s fine.
- nvm install node – that starts compiling things, same as the other method, still going hours later.
(I’m using a Pi-1 but nothing should take hours.)

What am I doing wrong here? It used to be easy, why is it now difficult/impossible?

Statistics: Posted by RichardDL — Tue Apr 01, 2025 8:02 pm



Viewing all articles
Browse latest Browse all 8042

Trending Articles