由于npm问题,需要使用配置cnpm, --registry=http://r.cnpmjs.org/ 安装grunt npm --registry=http://r.cnpmjs.org/ install yo grunt-cli -g 安装kpm npm --registry=http://r.cnpmjs.org/ install generator-kpm -g