How to Install nan NPM Packages on Ubuntu / Debian

How to Install nan software package in NPM Packages

nan : Native Abstractions for Node.js: C++ header for Node 0.8 -> 9 compatibility. You can installing nan 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 nan
$ sudo npm install -g nan

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

$ sudo npm update nan

Update package globally,

$ npm install -g nan

Git clone:

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

nan@2.8.0 /usr/lib/node_modules/nan

How to remove nan package :

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

$ sudo npm uninstall nan

Basic Information of nan NPM Package:

Package Name nan
Version 2.8.0
Description Native Abstractions for Node.js: C++ header for Node 0.8 -> 9 compatibility
Released Date 2017-11-15T11:34:24.395Z
Published by kkoopa
How to Learn https://www.npmjs.com/package/nan/tutorial