解决办法: 因为在国内npm安装会比较慢,所以推荐一下先安装淘宝镜像。在控制台执行命令:npm install cnpm -g --registry=https://registry.npm.taobao.org