当前位置:网站首页>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/边栏推荐
- DataTable uses Linq for grouping and summarization, and converts the Linq result set into DataTable
- 大型连锁百货运维审计用什么软件好?有哪些功能?
- 在被面试官说了无数次后,终于潜下心来整理了一下JVM的类加载器
- Towards Real-Time Multi-Object Tracking (JDE)
- TSF微服务治理实战系列(一)——治理蓝图
- Do you think border-radius is just rounded corners?【Various angles】
- Typora 使用保姆级教程 | 看这一篇就够了 | 历史版本已被禁用
- 字节最爱问的智力题,你会几道?
- 7-3 LVS+Keepalived Cluster Description and Deployment
- C Expert Programming Chapter 5 Thinking about Chaining 5.6 Take it easy --- see who's talking: take the Turning quiz
猜你喜欢
随机推荐
System design. How to design a spike system (full version transfer)
day13--postman interface test
C Expert Programming Chapter 5 Thinking about Chaining 5.6 Take it easy --- see who's talking: take the Turning quiz
day13--postman接口测试
震惊,99.9% 的同学没有真正理解字符串的不可变性
某母婴小程序加密参数解密
BFC、IFC、GFC、FFC概念理解、布局规则、形成方法、用处浅析
Use Patroni callback script to bind VIP pit
px、em、rem的区别
8款最佳实践,保护你的 IaC 安全!
C Expert Programming Chapter 4 The Shocking Fact: Arrays and pointers are not the same 4.1 Arrays are not pointers
share总结
力扣:96.不同的二叉搜索树
数的划分之动态规划
你以为border-radius只是圆角吗?【各种角度】
【21天学习挑战赛】顺序查找
Teenage Achievement Hackers Need These Skills
C Expert Programming Chapter 5 Thinking about Linking 5.2 Advantages of Dynamic Linking
Resolved error: npm WARN config global `--global`, `--local` are deprecated
【一步到位】Jenkins的安装、部署、启动(完整教程)









