赛普拉斯的安装因代理设置而失败 [英] Cypress installation fails with Proxy setup

查看:117
本文介绍了赛普拉斯的安装因代理设置而失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将cypress安装到我的Angular 8项目中。

I am trying to install cypress to my Angular 8 project.

但是当我尝试安装时,一次又一次地遇到相同的错误。

But when I try to install, I am getting the same error over and over again.

我已在环境变量中添加了代理以及我的.npmrc文件中。
这些是我在公司Wiki上找到的代理变量。
但是我仍然遇到相同的错误。

I've added the proxy in my environment variables and also in my .npmrc file. Those are the proxy variables I have found on the company's wiki. But I'am still getting the same error.

有人知道我在做什么错吗?

Does anyone knows what I am doing wrong here?

推荐答案

在通过命令行安装之前,请在环境变量下面进行设置。

Please set up below environment variables before installing through command line.

set HTTPS_PROXY=http://domain%5Cusername:password@proxy:80
set HTTP_PROXY=http://domain%5Cusername:password@proxy:80

另外,在npm的代理值下面设置

Also, set below proxy values for npm

npm config set proxy http://domain%5Cusername:password@proxy:80
npm config set http-proxy http://domain%5Cusername:password@proxy:80

另外,请确保您为代理服务器使用正确的URL。

Also, ensure you are using the correct url for the proxy server.

干杯!

这篇关于赛普拉斯的安装因代理设置而失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆