How to Install hard-rejection NPM Packages on Ubuntu / Debian

How to Install hard-rejection software package in NPM Packages

hard-rejection : Make unhandled promise rejections fail hard right away instead of the default silent fail. You can installing hard-rejection 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 hard-rejection
$ sudo npm install -g hard-rejection

If want to update the hard-rejection package execute the command as below,

$ sudo npm update hard-rejection

Update package globally,

$ npm install -g hard-rejection

Git clone:

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

hard-rejection@1.0.0 /usr/lib/node_modules/hard-rejection

How to remove hard-rejection package :

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

$ sudo npm uninstall hard-rejection

Basic Information of hard-rejection NPM Package:

Package Name hard-rejection
Version 1.0.0
Description Make unhandled promise rejections fail hard right away instead of the default silent fail
Released Date 2017-01-13T10:18:47.437Z
Published by sindresorhus
How to Learn https://www.npmjs.com/package/hard-rejection/tutorial