How to install PhantomJS v2 with npm

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

    Phantomjs may be installed as a brew package. Confirm this:

    brew ls | grep phantomjs
    

    If you do have phantomjs installed as a brew package, you can easily uninstall it:

    brew uninstall phantomjs
    

    Then try rerunning npm install after updating your package.json for "2.0.0".

    FYI: Please read semantic versioning: https://stackoverflow.com/a/22345808/3412545

提交回复
热议问题