How to Install sudo-prompt NPM Packages on Ubuntu / Debian

How to Install sudo-prompt software package in NPM Packages

sudo-prompt : Run a command using sudo, prompting the user with an OS dialog if necessary. You can installing sudo-prompt 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 sudo-prompt
$ sudo npm install -g sudo-prompt

If want to update the sudo-prompt package execute the command as below,

$ sudo npm update sudo-prompt

Update package globally,

$ npm install -g sudo-prompt

Git clone:

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

sudo-prompt@8.0.0 /usr/lib/node_modules/sudo-prompt

How to remove sudo-prompt package :

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

$ sudo npm uninstall sudo-prompt

Basic Information of sudo-prompt NPM Package:

Package Name sudo-prompt
Version 8.0.0
Description Run a command using sudo, prompting the user with an OS dialog if necessary
Released Date 2017-11-02T10:51:00.804Z
Published by jorandirkgreef
How to Learn https://www.npmjs.com/package/sudo-prompt/tutorial