How to install PhantomJS v2 with npm

前端 未结 4 1783
花落未央
花落未央 2021-01-03 20:15

I\'m trying to install PhantomJS v2.0.0 using npm and after trying a couple of methods I\'ve not found a working solution...

On NPM the lat

4条回答
  •  孤独总比滥情好
    2021-01-03 20:49

    I had troubles to install it via npm.

    I decided to build it. I'm running Ubuntu 15.10.

    First, check you have all the development packages installed :

    sudo apt-get install build-essential g++ flex bison gperf ruby perl libsqlite3-dev libfontconfig1-dev libicu-dev libfreetype6 libssl-dev libpng-dev libjpeg-dev python libx11-dev libxext-dev

    Then download the source code : https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.0.0-source.zip

    And run :
    cd phantomjs-2.0.0-source sudo ./build.sh

    It's a very long process to build it ! Be sure you know what you're doing.

提交回复
热议问题