How to Install pretty-bytes NPM Packages on Ubuntu / Debian

How to Install pretty-bytes software package in NPM Packages

pretty-bytes : Convert bytes to a human readable string: 1337 ? 1.34 kB. You can installing pretty-bytes 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 pretty-bytes
$ sudo npm install -g pretty-bytes

If want to update the pretty-bytes package execute the command as below,

$ sudo npm update pretty-bytes

Update package globally,

$ npm install -g pretty-bytes

Git clone:

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

pretty-bytes@4.0.2 /usr/lib/node_modules/pretty-bytes

How to remove pretty-bytes package :

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

$ sudo npm uninstall pretty-bytes

Basic Information of pretty-bytes NPM Package:

Package Name pretty-bytes
Version 4.0.2
Description Convert bytes to a human readable string: 1337 ? 1.34 kB
Released Date 2016-08-28T10:50:03.722Z
Published by sindresorhus
How to Learn https://www.npmjs.com/package/pretty-bytes/tutorial