2024年2月7日 / 1 min read 编程-前端-node 未完成 npm换源 npm node 摘要(由ai生成) 本文介绍了如何查看、更换和取消Node.js包管理工具(npm, yarn, pnpm)的源地址,以及如何使用yrm工具快速切换不同的npm源。通过执行特定的命令,用户可以轻松地管理这些工具的源设置,从而优化包的下载速度和开发效率。 查看源 Terminal windownpm config get registry Terminal windowyarn config get registry Terminal windowpnpm config get registry 换源 Terminal windownpm config set registry https://registry.npmmirror.com Terminal windowyarn config set registry https://registry.npmmirror.com Terminal windowpnpm config set registry https://registry.npmmirror.com 取消换源 Terminal windownpm config delete registry Terminal windowyarn config delete registry Terminal windowpnpm config delete registry 工具 GitHub - i5ting/yrm: YARN registry manager, fast switch between different registries: npm, cnpm, nj, taobao Terminal windownpm install -g yrm yrm ls yrm use [name]