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

有时generate会报错 #25

Closed
pharaohnie opened this issue Dec 27, 2012 · 2 comments
Closed

有时generate会报错 #25

pharaohnie opened this issue Dec 27, 2012 · 2 comments
Labels
bug Something isn't working

Comments

@pharaohnie
Copy link

不是每次运行都报错,错误信息如下:

hexo$ hexo generate
Loading.

/usr/local/share/npm/lib/node_modules/hexo/lib/util/file.js:72
        if (err) throw err;
                       ^
Error: EMFILE, readdir '/Users/pharaohnie/hexo/themes/light/source//css/_base'
@leecade
Copy link

leecade commented Jan 2, 2013

hexo generate                                                                          ⏎
Clearing.
Loading source files.
Analyzing source files.
Installing theme.
Generating index.

undefined:24
  throw err;
        ^
ReferenceError: ejs:7
    5|   <div id="content" class="inner">
    6|     <div id="main-col" class="alignleft"><div id="wrapper"><%- body %></div></div>
 >> 7|     <aside id="sidebar" class="alignright"><%- partial('_partial/sidebar') %></aside>
    8|     <div class="clearfix"></div>
    9|   </div>
    10|   <footer id="footer" class="inner"><%- partial('_partial/footer') %></footer>

ejs:2
    1| <% theme.widgets.forEach(function(widget){ %>
 >> 2| <%- partial('../_widget/' + widget) %>
    3| <% }); %>

ejs:3
    1| <div class="search">
    2|   <form action="http://google.com/search" method="get" accept-charset="utf-8">
 >> 3|     <input type="text" name="q" results="0" placeholder="<%= __('search') %>">
    4|     <input type="hidden" name="q" value="site:<%- config.url.replace(/^https?:\/\//, '') %>">
    5|   </form>
    6| </div>

__ is not defined
    at eval (eval at <anonymous> (/usr/local/lib/node_modules/hexo/node_modules/ejs/lib/ejs.js:234:12))
    at exports.compile (/usr/local/lib/node_modules/hexo/node_modules/ejs/lib/ejs.js:239:15)
    at Object.exports.render (/usr/local/lib/node_modules/hexo/node_modules/ejs/lib/ejs.js:277:13)
    at Object.ejs (/usr/local/lib/node_modules/hexo/lib/renderer/ejs.js:7:14)
    at exports.renderSync (/usr/local/lib/node_modules/hexo/lib/render.js:39:29)
    at Object.render [as partial] (/usr/local/lib/node_modules/hexo/lib/helper/partial.js:27:12)
    at eval (eval at <anonymous> (/usr/local/lib/node_modules/hexo/node_modules/ejs/lib/ejs.js:234:12))
    at Array.forEach (native)
    at eval (eval at <anonymous> (/usr/local/lib/node_modules/hexo/node_modules/ejs/lib/ejs.js:234:12))
    at exports.compile (/usr/local/lib/node_modules/hexo/node_modules/ejs/lib/ejs.js:239:15)

node -v ⏎
v0.8.16

@tommy351
Copy link
Member

tommy351 commented Jan 2, 2013

@leecade What's your Hexo version?

@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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants