Skip to content

Instantly share code, notes, and snippets.

@leewind
Last active August 29, 2015 14:02
Show Gist options
  • Select an option

  • Save leewind/4803c95ccbd285831860 to your computer and use it in GitHub Desktop.

Select an option

Save leewind/4803c95ccbd285831860 to your computer and use it in GitHub Desktop.
No binary for PhantomJS browser on your platform

When Yeoman reports error in Window 7:

ERROR [launcher]: No binary for PhantomJS browser on your platform. Please, set "PHANTOMJS_BIN" env variable.

it needs to set PHANTOMJS_BIN.

Step 1

Unzip the file phantomjs-1.9.7.windows.zip to one folder, I just put it in 'D:\michael\software\phantomjs-1.9.7-windows'

Step 2

In Window 7, the following code should be set in the PowerShell

$Env:PHANTOMJS_BIN='D:\michael\software\phantomjs-1.9.7-windows\phantomjs.exe'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment