How to Install mime-types NPM Packages on Ubuntu / Debian

How to Install mime-types software package in NPM Packages

mime-types : The ultimate javascript content-type utility.. You can installing mime-types 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 mime-types
$ sudo npm install -g mime-types

If want to update the mime-types package execute the command as below,

$ sudo npm update mime-types

Update package globally,

$ npm install -g mime-types

Git clone:

$ sudo  git clone https://github.com/rektide/mime-types.git
$ sudo  npm install -g ./mime-types

mime-types@2.1.17 /usr/lib/node_modules/mime-types

How to remove mime-types package :

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

$ sudo npm uninstall mime-types

Basic Information of mime-types NPM Package:

Package Name mime-types
Version 2.1.17
Description The ultimate javascript content-type utility.
Released Date 2017-09-02T03:26:34.147Z
Published by dougwilson
How to Learn https://www.npmjs.com/package/mime-types/tutorial