How to put phantomjs on $PATH

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