Skip to content
Go back

nrm和registry那些事

安装

sudo npm i -g nrm
/usr/local/bin/nrm -> /usr/local/lib/node_modules/nrm/cli.js
+ nrm@1.0.2
added 322 packages in 29.822s

全局配置地址

~/.npmrc

~/.yarnrc

普通模式设置源

// 查询下载源
npm get registry
pnpm get registry
yarn config get registry

// 设置镜像
npm config set registry https://registry.npmjs.org/
pnpm config set registry https://registry.npmjs.org/
yarn config set registry https://registry.yarnpkg.com

命令

坑&问题


Share this post on:

Previous Post
mac常用工具、快捷键、命令
Next Post
nvm