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

推荐订阅源

L
LangChain Blog
博客园 - 司徒正美
美团技术团队
Martin Fowler
Martin Fowler
雷峰网
雷峰网
aimingoo的专栏
aimingoo的专栏
博客园 - 三生石上(FineUI控件)
Vercel News
Vercel News
酷 壳 – CoolShell
酷 壳 – CoolShell
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
爱范儿
爱范儿
U
Unit 42
Y
Y Combinator Blog
月光博客
月光博客
Hugging Face - Blog
Hugging Face - Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
有赞技术团队
有赞技术团队
GbyAI
GbyAI
H
Help Net Security
量子位
Last Week in AI
Last Week in AI
博客园_首页
腾讯CDC
小众软件
小众软件

博客园 - 白马黑衣

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