Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bash: 未预期的符号 `newline' 附近有语法错误 #34

Closed
cuxnil opened this issue Jan 6, 2013 · 3 comments
Closed

bash: 未预期的符号 `newline' 附近有语法错误 #34

cuxnil opened this issue Jan 6, 2013 · 3 comments
Labels
question Needs help in usage

Comments

@cuxnil
Copy link

cuxnil commented Jan 6, 2013

hi ,
按照教程一步步的做,安装很顺利,但是在发布新文章的时候出现错误:
user@home:~$ hexo new_post
bash: 未预期的符号 `newline' 附近有语法错误。
any suggestion?

@cuxnil
Copy link
Author

cuxnil commented Jan 6, 2013

the hexo version is 0.4.1,
and when i try hexo --debug,it give me this:
user@home:/work/site$ hexo --debug

/home/cuxnil/nvm/v0.8.14/lib/node_modules/hexo/node_modules/yamljs/bin/yaml.js:1219
throw new YamlParseException('Unable to parse.', this.getRealCurrentLineNb
^
YamlParseException: Unable to parse.

also,the line 1219 of yaml.js is like this:

throw new YamlParseException('Unable to parse.', this.getRealCurrentLineNb() + 1, this.currentLine);

@cuxnil
Copy link
Author

cuxnil commented Jan 6, 2013

更新:
看了以前的issues,把_config.yml所有项目的冒号后面都加上了空格之后,hexo --debug不报错了,但是发布新文章的时候还是出现
user@home:~$ hexo new_post
bash: 未预期的符号 `newline' 附近有语法错误。

又回到了原来的问题了,
any suggestion?

@cuxnil
Copy link
Author

cuxnil commented Jan 6, 2013

真晕,建立新文章的时候,把例子里的<>一起给打上了,真正的命令是
hexo new_post title

@tommy351 tommy351 closed this as completed Jan 7, 2013
zhipengyan pushed a commit to zhipengyan/hexo that referenced this issue Apr 4, 2016
zhipengyan pushed a commit to zhipengyan/hexo that referenced this issue Apr 4, 2016
JLHwung pushed a commit to JLHwung/hexo that referenced this issue Jun 10, 2016
Fixed issue preventing #main from resizing when sidebar:left and a post contains a code block
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Needs help in usage
Projects
None yet
Development

No branches or pull requests

2 participants