arrow_back Back to Notebook
npm
npm
January 10, 2019

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

Thanks for reading!

John Wiseman

Full-Stack Software Engineer building scalable digital solutions. specializing in modern web technologies and mission-critical systems.

© 2026 Wiseman Systems Pty. Ltd.

Navigation

Start a Conversation

Ready to discuss your next project? Let's build something extraordinary together.

Get in Touch