How to Install mqtt NPM Packages on Ubuntu / Debian

How to Install mqtt software package in NPM Packages

mqtt : A library for the MQTT protocol. You can installing mqtt 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 mqtt
$ sudo npm install -g mqtt

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

$ sudo npm update mqtt

Update package globally,

$ npm install -g mqtt

Git clone:

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

mqtt@2.14.0 /usr/lib/node_modules/mqtt

How to remove mqtt package :

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

$ sudo npm uninstall mqtt

Basic Information of mqtt NPM Package:

Package Name mqtt
Version 2.14.0
Description A library for the MQTT protocol
Released Date 2017-11-04T10:07:38.527Z
Published by matteo.collina
How to Learn https://www.npmjs.com/package/mqtt/tutorial