node - windows下用npm安装hexo报错
本文介绍了node - windows下用npm安装hexo报错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
问 题
如题,用命令npm install hexo安装hexo时报错,如下:
npm ERR! C:\Users\用户名\AppData\Roaming\npm-cache\_cacache is not a legal HTTP header value
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\用户名\AppData\Roaming\npm-cache\_logs\2017-06-13T17_20_30_998Z-debug.log
这是什么问题?求解决。
解决方案
已经解决了,应该是最近国内npm源有问题。可以使用国内的镜像来解决,我稍微记了一下,http://roderic.cn/2017/06/14/...遇到同样问题的可以参考一下
这篇关于node - windows下用npm安装hexo报错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文