Could not find phantomjs

后端 未结 6 1674
终归单人心
终归单人心 2021-01-01 09:57

Getting the following error when trying to use phantomjs from ruby on Ubuntu:

 Failure/Error: visit root_path
 Cliver::Dependency::NotFound:
   Could not fin         


        
6条回答
  •  借酒劲吻你
    2021-01-01 10:32

    Other possible solution is to add executable rights to file:

    # download phantomjs
    $ curl --output /home/user/.rvm/bin/phantomjs https://s3.amazonaws.com/circle-downloads/phantomjs-2.1.1
    # set rights 
    $ chmod +x /home/user/.rvm/bin/phantomjs
    # check
    $ which phantomjs
    /home/user/.rvm/bin/phantomjs
    

    And also it is not recommended by poltergeist to use phantomjs from official Ubuntu repos:

    DO NOT use phantomjs from the official Ubuntu repositories, since it doesn't work well with poltergeist.

提交回复
热议问题