当前位置:网站首页>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/边栏推荐
- 擎朗智能全国研发创新中心落地光谷:去年曾获2亿美元融资
- C专家编程 第5章 对链接的思考 5.4 警惕Interpositioning
- 深度学习21天——准备(环境配置)
- [21 Days Learning Challenge] Image rotation problem (two-dimensional array)
- Shocked, 99.9% of the students didn't really understand the immutability of strings
- FPGA学习笔记——知识点总结
- 详解八大排序
- 少年成就黑客,需要这些技能
- How to view sql execution plan offline collection
- Large chain best freight d audit with what software?What are the functions?
猜你喜欢

Programming hodgepodge (4)

如何将 DevSecOps 引入企业?

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

System design. How to design a spike system (full version transfer)

某母婴小程序加密参数解密

擎朗智能全国研发创新中心落地光谷:去年曾获2亿美元融资

详解八大排序

8. Haproxy builds a web cluster

Simple operation of the file system

See how DevExpress enriches chart styles and how it empowers fund companies to innovate their business
随机推荐
BFC、IFC、GFC、FFC概念理解、布局规则、形成方法、用处浅析
21 days learning challenge 】 【 sequential search
路网编辑器技术预研
Hangdian Multi-School-Slipper- (tree map conversion + virtual point mapping)
FPGA学习笔记——知识点总结
【SemiDrive源码分析】【MailBox核间通信】47 - 分析RPMSG_IPCC_RPC 方式 单次传输的极限大小 及 极限带宽测试
【21 Days Learning Challenge】Direct Insertion Sort
深度学习21天——准备(环境配置)
px、em、rem的区别
渗透测试(PenTest)基础指南
少年成就黑客,需要这些技能
某母婴小程序加密参数解密
使用Loadrunner进行性能测试
编程大杂烩(四)
OpenSSF 安全计划:SBOM 将驱动软件供应链安全
一个对象引用的思考
Mini program + e-commerce, fun new retail
OpenGL绘制圆
信息学奥赛一本通 1312:【例3.4】昆虫繁殖
Write golang simple C2 remote control based on gRPC