hexo 安装问题

hexo 安装问题

1
$ npm install -g hexo-cli --registry https://registry.npm.taobao.org # 这里使用淘宝镜像也可以全局设置 npm config set registry https://registry.npm.taobao.org

错误提示

1
unable to verify the first certificate(无法验证第一证书)

问题是2014年2月27日npm不再支持自签名证书。
解决方法:
关闭ssl验证:npm config set strict-ssl false