How to Install leaflet NPM Packages on Ubuntu / Debian

How to Install leaflet software package in NPM Packages

leaflet : JavaScript library for mobile-friendly interactive maps. You can installing leaflet 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 leaflet
$ sudo npm install -g leaflet

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

$ sudo npm update leaflet

Update package globally,

$ npm install -g leaflet

Git clone:

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

leaflet@1.2.0 /usr/lib/node_modules/leaflet

How to remove leaflet package :

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

$ sudo npm uninstall leaflet

Basic Information of leaflet NPM Package:

Package Name leaflet
Version 1.2.0
Description JavaScript library for mobile-friendly interactive maps
Released Date 2017-08-08T13:49:03.802Z
Published by liedman
How to Learn https://www.npmjs.com/package/leaflet/tutorial