Installing phantomjs not working


#1

I installed phantomjs via brew.

Several ways I added the path to my .bashrc file
export PATH=$PATH:‘home/testing/node_modules/phantomjs2’

export PHANTOMJS=$HOME/workspace/node_modules/phantomjs2

export phantomjs=$HOME/workspace/node_modules/phantomjs2

export PhantomJS=$HOME/.phantomjs
export PATH=$PhantomJS/bin:$PATH

However when I type phantomjs it says : No such file or directory.

What am I doing wrong?

this is what i get when i type echo $PATH

/home/ubuntu/.phantomjs/bin:/home/ubuntu/.linuxbrew/bin:/home/ubuntu/.nvm/versions/node/v4.7.3/bin:/home/ubuntu/bin:/home/ubuntu/.phantomjs/bin:/usr/local/rvm/gems/ruby-2.3.0/bin:/usr/local/rvm/gems/ruby-2.3.0@global/bin:/usr/local/rvm/rubies/ruby-2.3.0/bin:/mnt/shared/bin:/home/ubuntu/workspace/node_modules/.bin:/home/ubuntu/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/mnt/shared/sbin:/opt/gitl:/opt/go/bin:/mnt/shared/c9/app.nw/bin:/usr/local/rvm/bin:home/testing/node_modules/phantomjs2


#2

It is easier to use npm, run npm i -g phantomjs-prebuilt to install the prebuilt phantomjs binary


#3

I love you. Thank you!!!