How to Install d3-drag NPM Packages on Ubuntu / Debian

How to Install d3-drag software package in NPM Packages

d3-drag : Drag and drop SVG, HTML or Canvas using mouse or touch input.. You can installing d3-drag 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 d3-drag
$ sudo npm install -g d3-drag

If want to update the d3-drag package execute the command as below,

$ sudo npm update d3-drag

Update package globally,

$ npm install -g d3-drag

Git clone:

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

d3-drag@1.2.1 /usr/lib/node_modules/d3-drag

How to remove d3-drag package :

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

$ sudo npm uninstall d3-drag

Basic Information of d3-drag NPM Package:

Package Name d3-drag
Version 1.2.1
Description Drag and drop SVG, HTML or Canvas using mouse or touch input.
Released Date 2017-10-03T17:04:59.722Z
Published by mbostock
How to Learn https://www.npmjs.com/package/d3-drag/tutorial