如何在Ubuntu上将phantomjs 1.9.8更新为phantomjs 2.1.1? [英] How to update phantomjs 1.9.8 to phantomjs 2.1.1 on ubuntu?
本文介绍了如何在Ubuntu上将phantomjs 1.9.8更新为phantomjs 2.1.1?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我无法在Ubuntu 16.04上重新安装phantomjs 1.9.8至2.1.1版本 请帮忙. 1.9.8在编写自旋函数时给了我一个错误,在文档中看到可以通过重新安装解决此问题.
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 I can solve with reinstalation.
推荐答案
我刚刚通过以下步骤在ubuntu 16.04中安装了phantomjs 2.1.1,在进行了一些谷歌搜索之后,我发现了该步骤:
I just installed phantomjs 2.1.1 in ubuntu 16.04 with the following steps, which I found after a bit of googling :
sudo apt-get install nodejs
sudo apt-get install nodejs-legacy
sudo apt-get install npm
sudo npm -g install phantomjs-prebuilt
这篇关于如何在Ubuntu上将phantomjs 1.9.8更新为phantomjs 2.1.1?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文