如何用量angular器解决'你的系统失败'的错误?
我正在开发一个单一的Web应用程序,按照这个教程:
https://docs.angularjs.org/tutorial
是什么原因使我产生了很大的问题,显然是量angular器端到端testing工具的正确configuration。 我已经完成了前面的所有步骤(安装npm,bower,jasmine等)。 然而,每当我尝试做相同的量angular器(当然是在适当的项目文件夹),控制台输出这个:
angular-phonecat@0.0.0 protractor C:\Users\Michał Szydłowski\angular-phonecat > protractor test/protractor-conf.js util.puts: Use console.log instead Using ChromeDriver directly... [launcher] Error: Could not find chromedriver at C:\Users\Michał Szydłowski\angu lar-phonecat\node_modules\protractor\selenium\chromedriver.exe npm ERR! Windows_NT 6.3.9600 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 v0.12.3 npm ERR! npm v2.9.1 npm ERR! code ELIFECYCLE npm ERR! angular-phonecat@0.0.0 protractor: `protractor test/protractor-conf.js` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the angular-phonecat@0.0.0 protractor script 'protractor test /protractor-conf.js'. npm ERR! This is most likely a problem with the angular-phonecat package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! protractor test/protractor-conf.js npm ERR! You can get their info via: npm ERR! npm owner ls angular-phonecat npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support request: npm ERR! C:\Users\Michał Szydłowski\angular-phonecat\npm-debug.log C:\Users\Michał Szydłowski\angular-phonecat>
我尝试修改package.json
文件以升级protractor
版本,或者添加manualarma karma命令行界面,但是这些都没有帮助。 有任何想法吗?
我注意到NPM在坏联系中performance得很好。 下载的依赖关系可能会中断,因为对于NPM来说,它已经到位了,只要有一个文件夹和“package.json”文件就足够了,但其他一些文件可能会丢失。 另外我也注意到这种情况在Mac上更频繁发生。
这会导致错误发生在不同的阶段,这取决于使用了哪些依赖关系。
我find的唯一的解决scheme是去一个错误,并find提到的依赖项,从node_modules
删除它的文件夹,并运行包含此node_modules
的包的npm i
(短手为npm install
)。
- 使用npm install angular2 –save时出错
- 错误TS7027:在Angular2 TypeScript Service类中检测到无法访问的代码
- 当我使用'npm start'命令时,找不到名字'Promise'错误
- 将价值从conf.js传递给一个咕task任务或咕噜任务
- 使用Http Post的Typescript&Angular问题新手
- Heroku不能构buildAngular2应用程序
- 在表单中用enctype改变内容types
- 当使用angular version 2.4.9,typescript&webpack version 2.2.1时,属性'map'在types'Observable <Response>'上不存在
- 通过咕噜在现场服务器上运行量angular器