How to Install basic-auth NPM Packages on Ubuntu / Debian

How to Install basic-auth software package in NPM Packages

basic-auth : node.js basic auth parser. You can installing basic-auth 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 basic-auth
$ sudo npm install -g basic-auth

If want to update the basic-auth package execute the command as below,

$ sudo npm update basic-auth

Update package globally,

$ npm install -g basic-auth

Git clone:

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

basic-auth@2.0.0 /usr/lib/node_modules/basic-auth

How to remove basic-auth package :

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

$ sudo npm uninstall basic-auth

Basic Information of basic-auth NPM Package:

Package Name basic-auth
Version 2.0.0
Description node.js basic auth parser
Released Date 2017-09-13T04:11:36.377Z
Published by dougwilson
How to Learn https://www.npmjs.com/package/basic-auth/tutorial