How to Install phantomjs NPM Packages on Ubuntu / Debian

How to Install phantomjs software package in NPM Packages

phantomjs : Headless WebKit with JS API. You can installing phantomjs 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 phantomjs
$ sudo npm install -g phantomjs

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

$ sudo npm update phantomjs

Update package globally,

$ npm install -g phantomjs

Git clone:

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

phantomjs@2.1.7 /usr/lib/node_modules/phantomjs

How to remove phantomjs package :

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

$ sudo npm uninstall phantomjs

Basic Information of phantomjs NPM Package:

Package Name phantomjs
Version 2.1.7
Description Headless WebKit with JS API
Released Date 2016-04-07T14:53:32.881Z
Published by nicks
How to Learn https://www.npmjs.com/package/phantomjs/tutorial