前言

介绍一些Node.js杂项。

Operating System: Ubuntu 22.04.4 LTS

参考文档

  1. npm镜像源大全,nrm换源,以及nvm切换node版本

npm镜像源

  1. 运行以下命令将 npm 的注册表设置为腾讯云的镜像地址:
1
npm config set registry https://mirrors.cloud.tencent.com/npm/
  1. 为了验证设置是否成功,你可以运行以下命令来查看当前的 npm 注册表地址:
1
npm config get registry

镜像源:

官方原始镜像:https://registry.npmjs.org/

淘宝 NPM 镜像:https://registry.npm.taobao.org

阿里云 NPM 镜像:https://npm.aliyun.com

腾讯云 NPM 镜像:https://mirrors.cloud.tencent.com/npm/

华为云 NPM 镜像:https://mirrors.huaweicloud.com/repository/npm/

网易 NPM 镜像:https://mirrors.163.com/npm/

中科院大学开源镜像站:http://mirrors.ustc.edu.cn/

清华大学开源镜像站:https://mirrors.tuna.tsinghua.edu.cn/

结语

第一百七十二篇博文写完,开心!!!!

今天,也是充满希望的一天。