VideosMy ProjectsProgramming BlogGallery
  1. Home
  2. Blog
  3. How to put phantomjs on $PATH
Programming Blog

Atom/RSS Feed

npm

How to put phantomjs on $PATH

npm

Putting phantomjs on the path will stop it downloading every time and therefore decrease the amount of time requiried to npm install.

1. Install phantomjs globally

npm install -g phantomjs

2. Edit the current users profile

micro ~/.profile

3. Add phantomjs to $PATH

At the bottom of this file the bottom add phantom js. The path is wherever global packages are install into.

export PATH=~/.npm-global/bin/phantomjs:$PATH

4. Reload the config

source ~/.profile

Alternatively close and open the terminal

Join my mailing list