flatiron / blacksmith

A generic static site generator built using flatiron, plates, and marked.
MIT License
555 stars 41 forks source link

Issue generating blacksmith site. #69

Closed phillyger closed 11 years ago

phillyger commented 11 years ago

Seeing the following error when attempting to generate a new blacksmith site using latest release 1.1.0.

/usr/local/lib/node_modules/blacksmith/node_modules/async/lib/async.js:81 if (!arr.length) { ^ TypeError: Cannot read property 'length' of undefined at Object.async.forEach (/usr/local/lib/node_modules/blacksmith/node_modules/async/lib/async.js:81:17) at common.readAll (/usr/local/lib/node_modules/blacksmith/lib/blacksmith/common.js:69:11) at Object.oncomplete (fs.js:297:15)

gorsti commented 11 years ago

Getting the same error, didn't have any probem with npm install of Jitsu (un-related to this issue) on same machine, however blacksmith is showing - happy to help debug, taking a look at async.js now

Rendering: /users/gordonsuttie/blacksmith/ Error rendering: /users/gordonsuttie/blacksmith/ { [Error: ENOENT, open '/users/gordonsuttie/blacksmith/.blacksmith'] errno: 34, code: 'ENOENT', path: '/users/gordonsuttie/blacksmith/.blacksmith' } [ 'Error: ENOENT, open \'/users/gordonsuttie/blacksmith/.blacksmith\'' ]

/usr/local/share/npm/lib/node_modules/blacksmith/node_modules/async/lib/async.js:81 if (!arr.length) { ^ TypeError: Cannot read property 'length' of undefined at Object.async.forEach (/usr/local/share/npm/lib/node_modules/blacksmith/node_modules/async/lib/async.js:81:17) at common.readAll (/usr/local/share/npm/lib/node_modules/blacksmith/lib/blacksmith/common.js:69:11) at Object.oncomplete (fs.js:297:15)

indexzero commented 11 years ago

You don't have a .blacksmith file. Add one and it will work

Please read the blog post about how there is zero backwards compatibility with blacksmith pre-1.0: http://blog.flatironjs.org/01-a-whole-new-blacksmith