2016-03-04 62 views
1

我嘗試在我的電腦上運行角度種子(Windows 10,最後更新)https://github.com/angular/angular-seed。網絡正常工作,但我有量角器問題。噶運行,但是當我嘗試量角器> npm運行量角器時,我得到這些錯誤。角度種子量角器拋出錯誤

E:\angular-seed>npm run protractor 

> [email protected] preprotractor E:\angular-seed 
> npm run update-webdriver 


> [email protected] preupdate-webdriver E:\angular-seed 
> npm install 

npm WARN install Couldn't install optional dependency: Unsupported 

> [email protected] postinstall E:\angular-seed 
> bower install 


> [email protected] update-webdriver E:\angular-seed 
> webdriver-manager update 

selenium standalone is up to date. 
chromedriver is up to date. 

> [email protected] protractor E:\angular-seed 
> protractor e2e-tests/protractor.conf.js 

Starting selenium standalone server... 
[launcher] Running 1 instances of WebDriver 
[launcher] Process exited with error code 1 
events.js:141 
    throw er; // Unhandled 'error' event 
    ^

Error: spawn java ENOENT 
    at exports._errnoException (util.js:855:11) 
    at Process.ChildProcess._handle.onexit (internal/child_process.js:178:32) 
    at onErrorNT (internal/child_process.js:344:16) 
    at nextTickCallbackWith2Args (node.js:455:9) 
    at process._tickCallback (node.js:369:17) 

npm ERR! Windows_NT 10.0.10586 
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "protractor" 
npm ERR! node v5.3.0 
npm ERR! npm v3.3.12 
npm ERR! code ELIFECYCLE 
npm ERR! [email protected] protractor: `protractor e2e-tests/protractor.conf.js` 
npm ERR! Exit status 1 
npm ERR! 
npm ERR! Failed at the [email protected] protractor script 'protractor e2e-tests/protractor.conf.js'. 
npm ERR! Make sure you have the latest version of node.js and npm installed. 
npm ERR! If you do, this is most likely a problem with the angular-seed package, 
npm ERR! not with npm itself. 
npm ERR! Tell the author that this fails on your system: 
npm ERR!  protractor e2e-tests/protractor.conf.js 
npm ERR! You can get their info via: 
npm ERR!  npm owner ls angular-seed 
npm ERR! There is likely additional logging output above. 

npm ERR! Please include the following file with any support request: 
npm ERR!  E:\angular-seed\npm-debug.log 

我已全部更新。我今天從git克隆並運行npm更新。這是我的問題還是包裝問題?

回答

2

Angular種子的主頁沒有提到,但量角器依賴於JDK。你有沒有安裝它?你可以通過檢查

java --version