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

Other programming languages • Re: Trying to install NodeJS and serialport.

$
0
0
On Bullseye 32-bit LITE, on a Pi4, if we sudo apt install nodejs npm we get
node --version v12.22.12
npm --version 7.5.2

A subsequent npm install of serialport gives warnings

Code:

npm WARN EBADENGINE Unsupported engine {npm WARN EBADENGINE   package: '@serialport/stream@13.0.0',npm WARN EBADENGINE   required: { node: '>=20.0.0' },npm WARN EBADENGINE   current: { node: 'v12.22.12', npm: '7.5.2' }
So previously working code will not work.
Looks like the apt versions are too old, so we would usually install nodejs using nvm

Code:

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash...
However, that may not work on an old Pi1 as that is ARMv6, so may now be unsupported for newer nodejs

Statistics: Posted by neilgl — Sat Aug 02, 2025 10:06 pm



Viewing all articles
Browse latest Browse all 9122

Trending Articles