How to Install random-item NPM Packages on Ubuntu / Debian

How to Install random-item software package in NPM Packages

random-item : Get a random item from an array. You can installing random-item 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 random-item
$ sudo npm install -g random-item

If want to update the random-item package execute the command as below,

$ sudo npm update random-item

Update package globally,

$ npm install -g random-item

Git clone:

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

random-item@1.0.0 /usr/lib/node_modules/random-item

How to remove random-item package :

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

$ sudo npm uninstall random-item

Basic Information of random-item NPM Package:

Package Name random-item
Version 1.0.0
Description Get a random item from an array
Released Date 2015-06-26T22:33:55.495Z
Published by sindresorhus
How to Learn https://www.npmjs.com/package/random-item/tutorial