hexo icon indicating copy to clipboard operation
hexo copied to clipboard

hexo命令无效

Open twamix opened this issue 13 years ago • 9 comments

hexo init xd cd xd 在xd下用hexo不返回任何结果,比如hexo version 而在除xd的文件夹里,执行hexo version 返回 1.2.3 看看是什么原因? python 2.73 nodejs 0.85

twamix avatar Jun 04 '13 14:06 twamix

請問使用的是什麼作業系統?

tommy351 avatar Jun 05 '13 01:06 tommy351

centos 6

twamix avatar Jun 05 '13 03:06 twamix

很遺憾我手邊沒有CentOS能夠測試,你可以先試試看重新安裝Node或升級至0.10.x版

tommy351 avatar Jun 05 '13 13:06 tommy351

我也是这种状况系统mac os x python 3.3.2 nodejs 0.10.10

ghost avatar Jun 06 '13 16:06 ghost

遇到过同样的问题并解决,nvm ls看看是否设置current:

popozhu ~/.vim$ nvm ls 

   v0.11.2
current:    v0.11.2
default -> v0.11.2

popozhu avatar Jun 07 '13 05:06 popozhu

感谢,问题解决

ghost avatar Jun 07 '13 08:06 ghost

每次当我设定language:zh-CN,hexo就无效了,而当language留空时,hexo命令又可以了,我用hexo0.5.12做测试,返回的错误是: node_modules/yamljs/bin/yaml.js:1219 throw new YamlParseException('Unable to parse.', this.getRealCurrentLineNbYamlParseException: Unable to parse. 作者看看如何解决啊

twamix avatar Jun 15 '13 13:06 twamix

@twamix YAML的key和value之前必須留空,如下:

language: zh-CN

More info: http://zh.wikipedia.org/zh-tw/YAML

tommy351 avatar Jun 15 '13 13:06 tommy351

@tommy351 同求助啊,mac os. @popozhu @steveshi nvm ls 设置current有什么用呢,按照上面的设置还是没用啊 能详细点吗 感谢

junxi avatar Jul 16 '13 15:07 junxi