# 安装cnpm
npm install -g cnpm --registry=https://registry.npm.taobao.org
# 据说等价于
alias cnpm="npm --registry=https://registry.npm.taobao.org \
--cache=$HOME/.npm/.cache/cnpm \
--disturl=https://npm.taobao.org/dist \
--userconfig=$HOME/.cnpmrc"
npm config set registry https://registry.npm.taobao.org