How to install PhantomJS v2 with npm

前端 未结 4 1752
花落未央
花落未央 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:46

    phantomjs-prebuilt was renamed from phantomjs and now additionally contains binaries for version 2.1+.

    npm -g install phantomjs-prebuilt
    

    The fork phantomjs2 is still available which contains version 2.0.

    npm -g install phantomjs2
    

    Keep in mind that not all platforms might be supported.

提交回复
热议问题