AngularJS e2e测试量角器设置

本文关键字:设置 量角器 测试 e2e AngularJS | 更新日期: 2023-09-27 18:21:05

我正试图在.NET应用程序中的Visual Studio中使用Protractor设置end2end角度测试,但出现以下错误。这些是什么以及如何去除这些。我如何才能摆脱这些,有没有任何方法可以安装量角器没有Npm?

npm ERR! network connect ETIMEDOUT
npm ERR! network This is most likely not a problem with npm itself
npm ERR! network and is related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settin
gs.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly. See: 'npm help config'
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:''Program Files''nodejs''''node.exe" "C:''Program Files''nod
ejs''node_modules''npm''bin''npm-cli.js" "install" "protractor"
npm ERR! cwd C:'Mandeep'MyStore'Application'MyStore.Web.Hos
t
npm ERR! node -v v0.10.31
npm ERR! npm -v 1.4.23
npm ERR! syscall connect
npm ERR! code ETIMEDOUT
npm ERR! errno ETIMEDOUT

AngularJS e2e测试量角器设置

看起来像是在代理后面。你可以看看下面的帖子来配置它:

代理背后的弓箭手

通过下载并复制node_modules文件夹中的量角器源,"可能"可以在没有npm的情况下使用proctor(模块化其他依赖项的分辨率)

https://github.com/angular/protractor/archive/master.zip