首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >角种子量角器抛出误差

角种子量角器抛出误差
EN

Stack Overflow用户
提问于 2016-03-04 21:53:17
回答 1查看 394关注 0票数 1

我尝试在我的计算机上运行角种子(Windows10,最后一次更新) https://github.com/angular/angular-seed。万维网很好,但我对量角器有问题。卡玛运行,但当我尝试量角器> npm运行量角器,我得到这些错误。

代码语言:javascript
复制
E:\angular-seed>npm run protractor

> angular-seed@0.0.0 preprotractor E:\angular-seed
> npm run update-webdriver


> angular-seed@0.0.0 preupdate-webdriver E:\angular-seed
> npm install

npm WARN install Couldn't install optional dependency: Unsupported

> angular-seed@0.0.0 postinstall E:\angular-seed
> bower install


> angular-seed@0.0.0 update-webdriver E:\angular-seed
> webdriver-manager update

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

> angular-seed@0.0.0 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! angular-seed@0.0.0 protractor: `protractor e2e-tests/protractor.conf.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the angular-seed@0.0.0 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更新。是我的问题还是包装的问题?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-03-07 21:07:49

角种子主页没有提到这一点,但是量角器依赖于JDK。你安装好了吗?你可以通过

代码语言:javascript
复制
java --version
票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/35806778

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档