Skip to content

Instantly share code, notes, and snippets.

@garystafford
Created February 17, 2016 15:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save garystafford/e9bfdb67df1619756a1d to your computer and use it in GitHub Desktop.
Save garystafford/e9bfdb67df1619756a1d to your computer and use it in GitHub Desktop.
npm install -g phantomjs
sudo vi ~/.bash_profile
# add PHANTOMJS_BIN environment variable (next two lines)
export PHANTOMJS_BIN=/usr/local/lib/node_modules/phantomjs/bin
# your file/line may vary
resetexport PATH=${PHANTOMJS_BIN}:$PATH
phantomjs --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment