使用淘宝镜像安装hexo失败

首先使用官方文档的$ npm install -g hexo-cli安装hexo超时一直未响应,后google后选择用淘宝镜像安装。

安装cnpm:

npm install -g cnpm --registry=https://registry.npm.taobao.org

然后安装npm时cnpm install -g hexo-cli失败,错误信息如下:
图片描述

请问如何解决?

阅读 7.2k
3 个回答

直接用NPM就行 指定淘宝源,或者翻墙用npm安装。

npm install -g hexo-cli --registry=https://registry.npm.taobao.org

请用右键管理员模式运行CMD。

推荐问题