I cant reinstall phantomjs 1.9.8 to 2.1.1 version on my ubuntu 16.04 Please help. 1.9.8 give me an errors when I write a spin functions, in documentation see that this ploblem
For those who have problems to install like me
it is more easy than you think...
sudo apt-get remove phantomjs
or remove npm folder of /node_modules/phantomjs
it will be in /
, maybe you will need to remove ln
the link of phantomjs in /usr/bin
or /usr/local/bin/
the name of it is phantomjs
Example
//use this if you installed with apt-get
sudo apt-get remove phantomjs *remove the phantomjs
rm /usr/bin/phantomjs *use this if the link didn't remove.
//use this if you installed from npm: like this: npm install phantomjs
rm -R /node_modules/phantomjs *note: it will be in other folder, search it.
npm install phantomjs
from /
directory, npm install it in folder /node_module/phantomjs
Example
cd /;
npm install phantomjs
Example
//check version of phantomjs
/node_modules/phantomjs/bin/phantomjs -v
/node_modules/phantomjs/bin/phantomjs test.js
/usr/bin
:Example
ln -sf /node_modules/phantomjs/bin/phantomjs /usr/bin/phantomjs
phantomjs -v
in my case 2.1.1