[issue fixed] Karma spawn enoent

[issue fixed] Karma spawn enoent

[Issue]

使用karma要開啟chrome進行unit test時, 回應以下的錯誤":

ERROR [karma]: { [Error: spawn ENOENT] code: 'ENOENT', errno: 'ENOENT', syscall: 'spawn' }

Error: spawn ENOENT

[Solution]

在環境變數中使用者變數新增一筆 CHROME_BIN

值為 C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

 

ps. OS 為 windows 7 - 64

ref : https://github.com/karma-runner/karma/issues/445