PhantomJS: getting “Killed: 9” for anything I'm trying

后端 未结 6 1346
旧巷少年郎
旧巷少年郎 2020-12-07 23:46

Just installed phantomjs, mac os x yosemite. Whenever I run /bin/phantomjs, with any parameter, I get Killed: 9. Any idea?

6条回答
  •  情深已故
    2020-12-08 00:24

    Blunt re-install using brew

    Whatever is in /usr/local/bin/phantomjs has stopped working for you.

    If you've got ~30mins to spare you can reinstall and relink using brew:

      # unlink old version
      brew unlink phantomjs
    
      # reinstall phantomjs
      brew update && brew install phantomjs
    
      # (You may wish to make a refreshing herbal tea or similar beverage here...)
    
      # Update link to usr/local/bin
      brew link --overwrite phantomjs
    

    If you want to test what brew will do with overwrite you can run

     brew link --overwrite --dry-run phantomjs 
    

提交回复
热议问题