当前位置:网站首页>npm报错Beginning October 4, 2021, all connections to the npm registry - including for package installa
npm报错Beginning October 4, 2021, all connections to the npm registry - including for package installa
2022-08-04 05:16:00 【S筱潇S四维Smile】
npm i安装依赖的时候出现报错,翻译软件翻译过来就是:
“从2021 10月4日开始,与npm注册表的所有连接(包括用于安装软件包的连接)必须使用TLS 1.2或更高版本。您当前正在使用明文http连接”
1、查看本地npm是不是官方的
npm config get registry
2、设置npm官方源
npm config set registry https://registry.npmjs.org
然后再安装就成功了
bogon:h5 dongxiao$ npm config get registry
http://registry.npmjs.org/
bogon:h5 dongxiao$ npm config set registry https://registry.npmjs.org
validBefore? true
bogon:h5 dongxiao$ npm config get registry
https://registry.npmjs.org/
边栏推荐
- 深度学习21天——准备(环境配置)
- C专家编程 第4章 令人震惊的事实:数组和指针并不相同 4.5 数组和指针的其他区别
- Get the selected content of the radio box
- Plus版SBOM:流水线物料清单PBOM
- Cache pool of unity framework
- Shocked, 99.9% of the students didn't really understand the immutability of strings
- 2022软件测试面试题 最新字节跳动50道真题面试题 刷完已拿下15k 附讲解+答疑
- 7-2 LVS+DR Overview and Deployment
- 备份工具pg_dump的使用《postgres》
- 结构体函数练习
猜你喜欢
3面头条,花7天整理了面试题和学习笔记,已正式入职半个月
Shocked, 99.9% of the students didn't really understand the immutability of strings
详解八大排序
信息学奥赛一本通 1312:【例3.4】昆虫繁殖
编程大杂烩(四)
你以为border-radius只是圆角吗?【各种角度】
想低成本保障软件安全?5大安全任务值得考虑
8. Haproxy builds a web cluster
FPGA学习笔记——知识点总结
See how DevExpress enriches chart styles and how it empowers fund companies to innovate their business
随机推荐
C Expert Programming Chapter 4 The Shocking Fact: Arrays and pointers are not the same 4.4 Matching declarations to definitions
C专家编程 第5章 对链接的思考 5.2 动态链接的优点
Dynamic programming of the division of numbers
Chapter 5 C programming expert thinking 5.4 alert Interpositioning of links
基于gRPC编写golang简单C2远控
败给“MySQL”的第60天,我重振旗鼓,四面拿下蚂蚁金服offer
Programming hodgepodge (4)
力扣:96.不同的二叉搜索树
【21 Days Learning Challenge】Direct Insertion Sort
擎朗智能全国研发创新中心落地光谷:去年曾获2亿美元融资
Converts XML tags to TXT format (voc conversion for yolo convenient training)
[SemiDrive source code analysis] [MailBox inter-core communication] 47 - Analysis of RPMSG_IPCC_RPC mode limit size of single transmission and limit bandwidth test
centos 安装postgresql13 指定版本
What is the salary of a software testing student?
How to keep the source code confidential in the development under the burning scenario
Landing, the IFC, GFC, FFC concept, layout rules, forming method, use is analysed
获取单选框选中内容
C Expert Programming Chapter 5 Thinking about Linking 5.1 Libraries, Linking and Loading
企业需要知道的5个 IAM 最佳实践
day13--postman interface test