当前位置:网站首页>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/
边栏推荐
- The 2022 PMP exam has been delayed, should we be happy or worried?
- 2022 software test interview questions The latest ByteDance 50 real interview questions, 15k have been won after brushing, with explanation + Q&A
- The Road to Ad Monetization for Uni-app Mini Program Apps: Full Screen Video Ads
- 详解八大排序
- 力扣:63. 不同路径 II
- As soon as flink cdc is started, the CPU of the source Oracle server soars to more than 80%. What is the reason?
- 你以为border-radius只是圆角吗?【各种角度】
- Use Patroni callback script to bind VIP pit
- static在不同位置定义变量居然还有不同的含义?
- Programming hodgepodge (4)
猜你喜欢
3000 words, is take you understand machine learning!
Dynamic programming of the division of numbers
编程大杂烩(三)
sql server如何得到本条记录与上一条记录的差异,即变动值
Shocked, 99.9% of the students didn't really understand the immutability of strings
高性能高可靠性高扩展性分布式防火墙架构
【C语言进阶】程序环境和预处理
Performance testing with Loadrunner
解决错误:npm WARN config global `--global`, `--local` are deprecated
[One step in place] Jenkins installation, deployment, startup (complete tutorial)
随机推荐
C专家编程 第4章 令人震惊的事实:数组和指针并不相同 4.4 使声明与定义相匹配
有趣的 Kotlin 0x0E:DeepRecursiveFunction
深度学习21天——准备(环境配置)
注意!软件供应链安全挑战持续升级
What is the salary of a software testing student?
[One step in place] Jenkins installation, deployment, startup (complete tutorial)
go module的介绍与应用
2023年PMP考试会用新版教材吗?回复来了!
[Cloud Native--Kubernetes] Pod Resource Management and Probe Detection
[Cocos] cc.sys.browserType可能的属性
文献管理工具 | Zotero
As soon as flink cdc is started, the CPU of the source Oracle server soars to more than 80%. What is the reason?
7-2 LVS+DR Overview and Deployment
el-Select selector bottom fixed
Teenage Achievement Hackers Need These Skills
附加:对于“与数据表对应的实体类“,【面对MongoDB时,使用的@Id等注解】和【以前面对MySQL时,使用的@Id等注解】,是不同的;
Performance testing with Loadrunner
【21天学习挑战赛】顺序查找
【SemiDrive源码分析】【MailBox核间通信】47 - 分析RPMSG_IPCC_RPC 方式 单次传输的极限大小 及 极限带宽测试
C专家编程 第4章 令人震惊的事实:数组和指针并不相同 4.5 数组和指针的其他区别