• E.Evan's 博客.
  • 前端相关
  • 算法题
  • 日常笔记
  • Chat With AI
  • 博客AI助手
Evan Wang
Evan Wang前端开发 · 个人学习手记

慢一点,也是在向前。

文章目录

Mac 开发环境配置常用 CSS日常配置常用正则其它JS 新语法

  1. 首页
  2. 日常笔记
  3. 常用
  4. 日常配置
© 2026 Evan 的博客
用心记录,保持好奇。Made with simplicity.
旧版 Blog 链接
367 字
约 1 分钟
更新于 2026/01/21

日常配置

阿里公共 DNS:

223.5.5.5
223.6.6.6

阿里 npm 镜像源:

http://registry.npmmirror.com

更改镜像源:

npm/yarn/pnpm
 
npm config set registry https://registry.npmmirror.com
 
pnpm config set registry https://registry.npmmirror.com
 
yarn config set registry https://registry.npmmirror.com

pnpm 命令

pnpm install # 安装依赖
 
pnpm add # 添加包
 
pnpm remove # 移除包
 
pnpm store prune # 清理不需要的包