How to Install bn.js NPM Packages on Ubuntu / Debian

How to Install bn.js software package in NPM Packages

bn.js : Big number implementation in pure javascript. You can installing bn.js 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 bn.js
$ sudo npm install -g bn.js

If want to update the bn.js package execute the command as below,

$ sudo npm update bn.js

Update package globally,

$ npm install -g bn.js

Git clone:

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

bn.js@4.11.8 /usr/lib/node_modules/bn.js

How to remove bn.js package :

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

$ sudo npm uninstall bn.js

Basic Information of bn.js NPM Package:

Package Name bn.js
Version 4.11.8
Description Big number implementation in pure javascript
Released Date 2017-08-07T22:21:45.304Z
Published by indutny
How to Learn https://www.npmjs.com/package/bn.js/tutorial