How to fix error “Please set env variable CHROME_BIN” when running Angular.js with grunt

前端 未结 3 819
孤城傲影
孤城傲影 2021-01-22 18:28

I am trying to do unit tests with AngularJS. I already have bower and grunt installed, so I should be able to do the tests. However, when I run \"grunt test\" from the terminal

3条回答
  •  天命终不由人
    2021-01-22 19:14

    You need to set CHROME_BIN as a new environmental variable. Set the value to the path to chrome.exe. This value is usually: C:/Program Files (x86)/Google/Chrome/Application/chrome.exe

    Here are the docs that describe how to configure each type of OS.

提交回复
热议问题