惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

IT之家
IT之家
博客园_首页
S
SegmentFault 最新的问题
罗磊的独立博客
博客园 - 【当耐特】
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
阮一峰的网络日志
阮一峰的网络日志
D
Docker
雷峰网
雷峰网
Google DeepMind News
Google DeepMind News
博客园 - 司徒正美
V
V2EX
大猫的无限游戏
大猫的无限游戏
V
Visual Studio Blog
腾讯CDC
宝玉的分享
宝玉的分享
酷 壳 – CoolShell
酷 壳 – CoolShell
人人都是产品经理
人人都是产品经理
T
Tailwind CSS Blog
Vercel News
Vercel News
H
Help Net Security
博客园 - Franky
D
DataBreaches.Net
aimingoo的专栏
aimingoo的专栏

博客园 - 白马黑衣

网络安全3 - Easy RSA重新签发客户端证书 RHEL - 笔记本合盖不休眠 RHEL - yum cache JFrog Artifactory 系列6 --- 其他配置 Rocky Linux 升级失败 Nginx 系列2 --- 配置 Linux --- firewalld 2 - nfttables Linux - DNS Apache HTTP Server 关闭SELinux RHEL - 设置hostname和IP地址 Linux --- 查看PID 判断端口是否已经被占用 Maven 常用命令 Jenkins 系列3 --- pipeline Git自签名证书的验证 iptables Jenkins 系列2 --- Node/Agent Jenkins 系列1 --- 安装与配置
Node.js - 配置npm
白马黑衣 · 2024-07-07 · via 博客园 - 白马黑衣

一、概要

1. 环境

(1) Rocky Linux 9.2

二、配置

1. 镜像

(1) 查看镜像

npm config get registry

(2) 配置镜像

npm config set registry 镜像地址

(3) 镜像列表

淘宝: https://registry.npm.taobao.org
阿里云: https://npm.aliyun.com/
CNPM: http://registry.cnpmjs.org

2. 证书校验失败

certificate has expired

(1) 取消SSL验证

npm config get strict-ssl
npm config set strict-ssl false

3. cnpm 

(1) 安装

npm install -g cnpm --registry=https://registry.npm.taobao.org 

posted @ 2024-07-07 22:49  白马黑衣  阅读(116)  评论(0)    收藏  举报