leewind
6/25/2014 - 3:34 AM

No binary for PhantomJS browser on your platform

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'