Reputation: 51
I've downloaded and unzipped the phantomjs binary, but I don't know how to set it up.
I've tried adding it to my path in .bashrc and copying it to usr/bin, but it's still listed as uninstalled when I type in which phantomjs
at terminal.
Any ideas on how to make it available at the system level?
Thanks!
Upvotes: 2
Views: 1256
Reputation: 51
Thanks ahmeddeep007 for a link to the eventual fix. I tried hacking things with a few different symlinks, moving the binary to user/bin, etc., but the eventual solution was also the simplest.
sudo npm install -g phantomjs
I use npm locally for managing project dependencies, but it didn't jive that I could just add the -g
flag until I saw it somewhere else.
Upvotes: 3