npm install -g cnpm --registry=https://registry.npm.taobao.org (淘宝镜像安装) npm install -g yarn(npm安装yarn)