问题所在:npm代理问题。
解决方法:
使用淘宝镜像源:
npm install -g cnpm --registry=https://registry.npm.taobao.org
然后使用cnpm命令安装。