Ok.

I've resolved it with this order to install:

sudo npm install serialport --unsafe-perm --build-from-source

as the serialport web page says:

https://www.npmjs.com/package/serialport

Thanks for all!

Answer from peripecio on Stack Overflow
🌐
npm
npmjs.com › package › serialport
serialport - npm
Better yet, program them!. Latest version: 13.0.0, last published: a year ago. Start using serialport in your project by running `npm i serialport`. There are 5263 other projects in the ...
      » npm install serialport
    
Published   Dec 24, 2024
Version   13.0.0
🌐
Serialport
serialport.io › installing serialport
Installing SerialPort | Node SerialPort
root@rpi3:~# npm install -g serialport /usr/bin/serialport-list -> /usr/lib/node_modules/serialport/bin/serialport-list.js /usr/bin/serialport-term -> /usr/lib/node_modules/serialport/bin/serialport-terminal.js > serialport@6.0.0-beta1 install /Users/wizard/src/node-serialport > prebuild-install ...
🌐
GitHub
github.com › serialport › node-serialport
GitHub - serialport/node-serialport: Access serial ports with JavaScript. Linux, OSX and Windows. Welcome your robotic JavaScript overlords. Better yet, program them! · GitHub
Go to https://serialport.io/ to learn more, find guides and api documentation. ... Run npm install to setup local package dependencies (run this any time you depend on a package local to this repo)
Starred by 6K users
Forked by 1K users
Languages   TypeScript 85.8% | JavaScript 13.2%
🌐
UNPKG
unpkg.com › browse › serialport@7.0.2 › README.md
UNPKG
For NodeJS versions 0.10 and 0.12, ... "standard" use cases (Node v4.x on Mac, Linux, or Windows on a x86 or x64 processor), Node-Serialport will install nice and easy with: ``` npm install serialport ``` ### Installation Special Cases We use [prebuild](https://github.com/ma...
🌐
Node-RED
flows.nodered.org › node › node-red-node-serialport
node-red-node-serialport (node) - Node-RED
To install the stable version use the Menu - Manage palette - Install option and search for node-red-node-serialport, or run the following command in your Node-RED user directory, typically ~/.node-red · npm i node-red-node-serialport · During ...
🌐
npm
npmjs.com › package › serialport-v4
serialport-v4 - npm
June 3, 2017 - # If you don't have node/npm already, ... udev # Then we can install serialport, forcing it to compile npm install serialport --build-from-source=serialport...
      » npm install serialport-v4
    
Published   Jun 03, 2017
Version   4.0.9
Author   Chris Williams
🌐
npm
npmjs.com › package › node-red-node-serialport
node-red-node-serialport - npm
August 6, 2024 - To install the stable version use the Menu - Manage palette - Install option and search for node-red-node-serialport, or run the following command in your Node-RED user directory, typically ~/.node-red ·
      » npm install node-red-node-serialport
    
Published   Aug 06, 2024
Version   2.0.3
Find elsewhere
🌐
npm
npmjs.com › package › serialport-gsm
serialport-gsm - npm
SerialPort · Contributors · License · npm install serialport-gsm · A full example can be found in the example directory. let serialportgsm = require('serialport-gsm') serialportgsm.list((err, result) => { console.log(result) }) Call other ...
      » npm install serialport-gsm
    
Published   Nov 24, 2022
Version   4.0.1
🌐
GitHub
github.com › serialport › node-serialport › issues › 1691
Make `npm install serialport` just work on Windows · Issue #1691 · serialport/node-serialport
October 2, 2018 - npm install serialport should just work on any computer and commandline where some reasonably recent version of node and npm are installed and in the PATH.
Author   serialport
🌐
npm
npmjs.com › package › @cutii › serialport
@cutii/serialport - npm
# If you don't have node/npm already, ... python linux-headers udev # Then we can install serialport, forcing it to compile npm install serialport --build-from-source # If you're installing as root, you'll also need to use the ...
      » npm install @cutii/serialport
    
Published   Dec 05, 2017
Version   6.0.4
🌐
npm
npmjs.com › package › serialport-v5
serialport-v5 - npm
August 2, 2017 - # If you don't have node/npm already, ... python linux-headers udev # Then we can install serialport, forcing it to compile npm install serialport --build-from-source # If you're installing as root, you'll also need to use the ...
      » npm install serialport-v5
    
Published   Aug 02, 2017
Version   5.0.0
Author   Chris Williams
🌐
Latenode
community.latenode.com › other questions › npm
Trouble installing node-serialport via NPM - NPM - Latenode Official Community
May 3, 2025 - I’m pretty new to Linux, Node, and NPM, so I could really use some help. When I run npm install serialport, it fails with an error. The weird thing is, other modules install just fine. It’s only serialport giving me trouble. Here’s what I’m working with: Node version: 0.4.9 NPM version: ...
🌐
Stack Overflow
stackoverflow.com › questions › 61154241 › npm-install-serialport-needs-vs
node.js - npm install serialport needs VS? - Stack Overflow
April 11, 2020 - CopyE:\Windows\Desktop\Work\Electron\testing>npm install serialport > @serialport/bindings@8.0.7 install E:\Windows\Desktop\Work\Electron\testing\node_modules\@serialport\bindings > prebuild-install --tag-prefix @serialport/bindings@ || node-gyp ...
🌐
npm
npmjs.com › package › serialport-js
serialport-js - npm
This is great for consumer facing products as there is no need for compilers or dev tools to install the module with your app, users just need node. var serialjs=require('serialport-js').node(); //thats the only difference
      » npm install serialport-js
    
Published   Jul 21, 2017
Version   1.1.0
🌐
npm
npmjs.com › search
serialport - npm search
A pure JavaScript implementation of MODBUS-RTU (Serial and TCP) for NodeJS. The serialport package is an optional dependency (use npm install --no-optional to skip).
🌐
Npm
npm.io › package › @cutii › serialport
@cutii/serialport NPM | npm.io
# If you don't have node/npm already, add that first sudo apk add --no-cache nodejs # Add the necessary build and runtime dependencies sudo apk add --no-cache make gcc g++ python linux-headers udev # Then we can install serialport, forcing it to compile npm install serialport --build-from-source ...
🌐
Npm
npm.io › package › serialport
Serialport NPM | npm.io
This may include tasks such as converting the data to text, emitting useful chunks of data when they have been fully received, or even validating protocols. Parsers are traditionally Transform streams, but Duplex streams and other non stream interfaces are acceptable. ... Run npm install ...