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

推荐订阅源

云风的 BLOG
云风的 BLOG
The GitHub Blog
The GitHub Blog
A
About on SuperTechFans
P
Proofpoint News Feed
G
Google Developers Blog
Stack Overflow Blog
Stack Overflow Blog
IT之家
IT之家
Microsoft Security Blog
Microsoft Security Blog
F
Fortinet All Blogs
人人都是产品经理
人人都是产品经理
博客园 - 叶小钗
C
Check Point Blog
Microsoft Azure Blog
Microsoft Azure Blog
aimingoo的专栏
aimingoo的专栏
月光博客
月光博客
美团技术团队
D
Docker
博客园 - Franky
Y
Y Combinator Blog
大猫的无限游戏
大猫的无限游戏
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园 - 【当耐特】
罗磊的独立博客
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报

博客园 - 白马黑衣

网络安全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)    收藏  举报