目前国内npm源有问题,可以通过一下方法安装
npm install -g mynpm --registry=https://registry.npm.taobao.org mynpm install hexo-cli -g