npm config get registry //查看当前的数据源 但是我要切换到淘宝数据源 npm install -g cnpm --registry=https://registry.npm.taobao.org