How to Install lru-cache NPM Packages on Ubuntu / Debian

How to Install lru-cache software package in NPM Packages

lru-cache : A cache object that deletes the least-recently-used items.. You can installing lru-cache 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 lru-cache
$ sudo npm install -g lru-cache

If want to update the lru-cache package execute the command as below,

$ sudo npm update lru-cache

Update package globally,

$ npm install -g lru-cache

Git clone:

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

lru-cache@4.1.1 /usr/lib/node_modules/lru-cache

How to remove lru-cache package :

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

$ sudo npm uninstall lru-cache

Basic Information of lru-cache NPM Package:

Package Name lru-cache
Version 4.1.1
Description A cache object that deletes the least-recently-used items.
Released Date 2017-06-11T03:00:46.159Z
Published by isaacs
How to Learn https://www.npmjs.com/package/lru-cache/tutorial