不使用ssl进行npm安装 [英] npm install without ssl

查看:58
本文介绍了不使用ssl进行npm安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的Ubuntu VM无法通过ssl(即https)连接到站点.如果网址以http开头,它可以从Internet成功下载工件.

I have an Ubuntu VM that is having trouble connecting to sites with ssl, i.e. https. It can successfully download artifacts from the internet if the url begins with http.

npm install将通过https下载依赖项.无论如何,可以通过http下载吗?

npm install will download dependencies via https. Is there anyway make it download via http?

推荐答案

尝试使用命令将注册表更改为http版本,而不是默认的https版本

Try changing the registry to the http version rather that the default https one using the command

npm config set registry http://registry.npmjs.org/

这篇关于不使用ssl进行npm安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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