Linux小技巧

tldr:linux命令查询工具

先得安装nodejs
yum install nodejs
然后npm install -y tldr

1, 修改 下载仓库为淘宝镜像

npm config set registry https://registry.npm.taobao.org --global

npm config set disturl https://npm.taobao.org/dist --global

2, 如果要发布自己的镜像需要修改回来

  npm config set registry https://registry.npmjs.org/

3, 安装cnpm

 npm install -g cnpm --registry=https://registry.npm.taobao.org

4,查看当前地址

npm config list

原文地址:https://www.cnblogs.com/python001-vip/p/12630777.html