How to Install mock-fs NPM Packages on Ubuntu / Debian

How to Install mock-fs software package in NPM Packages

mock-fs : A configurable mock file system. You know, for testing.. You can installing mock-fs 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 mock-fs
$ sudo npm install -g mock-fs

If want to update the mock-fs package execute the command as below,

$ sudo npm update mock-fs

Update package globally,

$ npm install -g mock-fs

Git clone:

$ sudo  git clone https://github.com/rektide/mock-fs.git
$ sudo  npm install -g ./mock-fs

mock-fs@4.4.2 /usr/lib/node_modules/mock-fs

How to remove mock-fs package :

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

$ sudo npm uninstall mock-fs

Basic Information of mock-fs NPM Package:

Package Name mock-fs
Version 4.4.2
Description A configurable mock file system. You know, for testing.
Released Date 2017-10-13T16:45:44.441Z
Published by tschaub
How to Learn https://www.npmjs.com/package/mock-fs/tutorial