hexo安装问题

症状:

按照网上流程一直到在命令行输入

1
npm install -g hexo

后迅速出现回显

1
npm WARN deprecated [email protected]: This package is no longer maintained

此回显不影响安装流程,可以忽略,但是出现这行命令后光标长时间在下一行闪烁而没有回应。

解决:
ctrl+c打断进程

1
npm config set registry https://registry.npm.taobao.org

1
npm info underscore

或直接进入淘宝 NPM 镜像网站,按照流程替换npm为cnpm命令亦可