How to Install moment NPM Packages on Ubuntu / Debian

How to Install moment software package in NPM Packages

moment : Parse, validate, manipulate, and display dates. You can installing moment 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 moment
$ sudo npm install -g moment

If want to update the moment package execute the command as below,

$ sudo npm update moment

Update package globally,

$ npm install -g moment

Git clone:

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

moment@2.19.2 /usr/lib/node_modules/moment

How to remove moment package :

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

$ sudo npm uninstall moment

Basic Information of moment NPM Package:

Package Name moment
Version 2.19.2
Description Parse, validate, manipulate, and display dates
Released Date 2017-11-11T20:34:47.676Z
Published by ichernev
How to Learn https://www.npmjs.com/package/moment/tutorial