ruby on rails - Cliver and PhantomJS error with update to MacOS Sierra -


i updated osx el capitan macos sierra , began seeing phantomjs errors.

$ rspec <some feature test
... detector #<struct cliver::detector command_arg=nil, version_pattern=nil> failed detect theversion of executable @ '/app/node_modules/phantomjs-prebuilt/bin/phantomjs'

how can resolve this?

after playing around, realized $ phantomjs --version not returning anything. strange. checked both

$ brew list $ npm ls 

and saw neither listed phantomjs 1 of packages. looks had issue phantomjs install. decided fresh install of phantomjs.

i began determining phantomjs installed:

$ phantomjs /usr/local/bin/phantomjs 

remove it:

$ rm -rf /usr/local/bin/phantomjs $ phantomjs -v -bash: /usr/local/bin/phantomjs: no such file or directory 

good. install phantomjs npm:

$ npm -g install phantomjs-prebuilt $ phantomjs -v 2.1.1 

this looks promising. lets run our spec again:

$ rspec <some feature test> 1 example, 0 failures 

success.


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -