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 warningsSo previously working code will not work.
Looks like the apt versions are too old, so we would usually install nodejs using nvmHowever, that may not work on an old Pi1 as that is ARMv6, so may now be unsupported for newer nodejs
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' }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...Statistics: Posted by neilgl — Sat Aug 02, 2025 10:06 pm