npm
源配置
1.通过 config 命令
设置
npm config set registry https://registry.npm.taobao.org
恢复
npm config set registry https://registry.npmjs.org/
2.命令行指定
npm some_command --registry https://registry.npm.taobao.org
3.编辑 ~/.npmrc 加入下面内容
registry = https://registry.npm.taobao.org
常用命令
check for outdated packages
npm outdated
发布 scoped package
npm publish --access public
list global packages
npm list -g --depth 0
yarn global list