How to update phantomjs 1.9.8 to phantomjs 2.1.1 on ubuntu?

后端 未结 6 855
北恋
北恋 2021-02-02 16:54

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

6条回答
  •  逝去的感伤
    2021-02-02 17:42

    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
    

提交回复
热议问题