当前位置:网站首页>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 registry2、设置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/边栏推荐
- C专家编程 第4章 令人震惊的事实:数组和指针并不相同 4.2 我的代码为什么无法运行
- 力扣:96.不同的二叉搜索树
- el-Select 选择器 底部固定
- [C language advanced] program environment and preprocessing
- Typora 使用保姆级教程 | 看这一篇就够了 | 历史版本已被禁用
- Gartner 权威预测未来4年网络安全的8大发展趋势
- The symbol table
- 某母婴小程序加密参数解密
- 数的划分之动态规划
- How to keep the source code confidential in the development under the burning scenario
猜你喜欢

附加:对于“与数据表对应的实体类“,【面对MongoDB时,使用的@Id等注解】和【以前面对MySQL时,使用的@Id等注解】,是不同的;

Programming hodgepodge (4)

8. Haproxy builds a web cluster

使用Loadrunner进行性能测试

3面头条,花7天整理了面试题和学习笔记,已正式入职半个月

Towards Real-Time Multi-Object Tracking(JDE)

What is the salary of a software testing student?

数的划分之动态规划

SLSA 框架与软件供应链安全防护
![[Cloud Native--Kubernetes] Pod Resource Management and Probe Detection](/img/1a/b3bdf9b62c82b0fc4d913045981d94.png)
[Cloud Native--Kubernetes] Pod Resource Management and Probe Detection
随机推荐
Large chain best freight d audit with what software?What are the functions?
C专家编程 第5章 对链接的思考 5.4 警惕Interpositioning
转:管理是对可能性的热爱,管理者要有闯进未知的勇气
DataTable使用Linq进行分组汇总,将Linq结果集转化为DataTable
For Qixi Festival, I made a confession envelope with code
Write golang simple C2 remote control based on gRPC
文献管理工具 | Zotero
See how DevExpress enriches chart styles and how it empowers fund companies to innovate their business
想低成本保障软件安全?5大安全任务值得考虑
符号表
The 2022 PMP exam has been delayed, should we be happy or worried?
leetcode 12. Integer to Roman numeral
Converts XML tags to TXT format (voc conversion for yolo convenient training)
C Expert Programming Chapter 5 Thinking about Linking 5.1 Libraries, Linking and Loading
Dynamic programming of the division of numbers
力扣题解8/3
DataTable uses Linq for grouping and summarization, and converts the Linq result set into DataTable
C Expert Programming Chapter 5 Thinking about Linking 5.2 Advantages of Dynamic Linking
深度学习21天——卷积神经网络(CNN):实现mnist手写数字识别(第1天)
Gartner 权威预测未来4年网络安全的8大发展趋势