How to Install serialport NPM Packages on Ubuntu / Debian

How to Install serialport software package in NPM Packages

serialport : Node.js package to access serial ports. Linux, OSX and Windows. Welcome your robotic JavaScript overlords. Better yet, program them!. You can installing serialport npm packages, there are two ways to install this module locally and globaly. -g option is specified to global. Execute the below command.

$ sudo npm install serialport
$ sudo npm install -g serialport

If want to update the serialport package execute the command as below,

$ sudo npm update serialport

Update package globally,

$ npm install -g serialport

Git clone:

$ sudo  git clone https://github.com/rektide/serialport.git
$ sudo  npm install -g ./serialport

serialport@6.0.4 /usr/lib/node_modules/serialport

How to remove serialport package :

You can uninstall or remove this package from your node_modules run the command as below,

$ sudo npm uninstall serialport

Basic Information of serialport NPM Package:

Package Name serialport
Version 6.0.4
Description Node.js package to access serial ports. Linux, OSX and Windows. Welcome your robotic JavaScript overlords. Better yet, program them!
Released Date 2017-10-26T03:05:29.043Z
Published by reconbot
How to Learn https://www.npmjs.com/package/serialport/tutorial