当前位置:网站首页>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/边栏推荐
- What is the salary of a software testing student?
- Converts XML tags to TXT format (voc conversion for yolo convenient training)
- [One step in place] Jenkins installation, deployment, startup (complete tutorial)
- 深度学习21天——准备(环境配置)
- 【C语言进阶】程序环境和预处理
- C Expert Programming Chapter 5 Thinking about Linking 5.3 5 Special Secrets of Library Linking
- C Expert Programming Chapter 5 Thinking about Linking 5.2 Advantages of Dynamic Linking
- 离线采集怎么看sql执行计划
- 在被面试官说了无数次后,终于潜下心来整理了一下JVM的类加载器
- Chapter 5 C programming expert thinking 5.4 alert Interpositioning of links
猜你喜欢
随机推荐
[SemiDrive source code analysis] [MailBox inter-core communication] 47 - Analysis of RPMSG_IPCC_RPC mode limit size of single transmission and limit bandwidth test
day13--postman interface test
使用Loadrunner进行性能测试
深度学习21天——卷积神经网络(CNN):实现mnist手写数字识别(第1天)
数的划分之动态规划
Shocked, 99.9% of the students didn't really understand the immutability of strings
SLSA 框架与软件供应链安全防护
C Expert Programming Chapter 5 Thinking about Chaining 5.6 Take it easy --- see who's talking: take the Turning quiz
What are the steps for how to develop a mall system APP?
看DevExpress丰富图表样式,如何为基金公司业务创新赋能
[Evaluation model] Topsis method (pros and cons distance method)
2022年PMP考试延迟了,该喜该忧?
Will the 2023 PMP exam use the new version of the textbook?Reply is here!
Mini program + e-commerce, fun new retail
Tactile intelligent sharing - SSD20X realizes upgrade display progress bar
渗透测试(PenTest)基础指南
[C language advanced] program environment and preprocessing
C专家编程 第4章 令人震惊的事实:数组和指针并不相同 4.1 数组并非指针
Towards Real-Time Multi-Object Tracking (JDE)
编程大杂烩(三)







![[One step in place] Jenkins installation, deployment, startup (complete tutorial)](/img/f2/15fb546eb864d7ff40b5507d5c7aa5.png)

