Initial Error?

48 views
Skip to first unread message

Shih-Yung Lee

unread,
May 8, 2011, 4:13:12 AM5/8/11
to loose...@googlegroups.com
I tried to install and started the project based on http://looseleafjs.org/ guideline.

$ npm install looseleaf -g
$ looseleaf yourblog
$ node yourblog/app.js

But it would have error during "node yourblog/app.js"
The error message as following:

node.js:116
        throw e; // process.nextTick error, or 'error' event on first tick
        ^
Error: ENOENT, No such file or directory '/home/ferrari/experiment/nodejs/ferrariBlog/data/entry/'
    at Object.readdirSync (fs.js:345:18)
    at Object.init (/usr/local/lib/node_modules/looseleaf/lib/blog.js:49:18)
    at Object.init (/usr/local/lib/node_modules/looseleaf/lib/looseleaf.js:89:32)
    at Object.<anonymous> (/home/ferrari/experiment/nodejs/ferrariBlog/app.js:9:20)
    at Module._compile (module.js:374:26)
    at Object..js (module.js:380:10)
    at Module.load (module.js:306:31)
    at Function._load (module.js:272:10)
    at Array.<anonymous> (module.js:393:10)
    at EventEmitter._tickCallback (node.js:108:26)

I create directory entry under data manually and it worked fine.
But I'm not sure is it a right way of this error.

Thanks

Simon McManus

unread,
May 8, 2011, 4:22:26 AM5/8/11
to LooseLeaf
I had the same error, and solved it the same way:

mkdir ./yourblog/data/entry


I also had to create the folder:

mkdir /yourblog/public/file/

Everything seems to be working quite nicely now.

Thanks




On May 8, 9:13 am, Shih-Yung Lee <shiy...@gmail.com> wrote:
> I tried to install and started the project based onhttp://looseleafjs.org/

tnantoka

unread,
May 8, 2011, 9:48:52 AM5/8/11
to loose...@googlegroups.com
Hi,

Thank you for your feedback.

Sorry, it was caused by my mistake in setting of git.
Fixed now.

Tatsuya


2011/5/8 Simon McManus <mcmanu...@gmail.com>
Reply all
Reply to author
Forward
0 new messages