journo icon indicating copy to clipboard operation
journo copied to clipboard

How to install and run it?

Open etnt opened this issue 11 years ago • 1 comments

Ehum...excuse my ignorance when it comes to Node.js. I tried to install journo with the npm command as described. Then trying 'journo init' which complains about a missing 'node', so I modifiy the journo script to use 'nodejs' (I'm using Ubuntu 12.10), but now I get:

$ journo init

/usr/local/lib/node_modules/journo/journo.js:175 if (fs.existsSync('posts')) { ^ TypeError: Object #<Object> has no method 'existsSync' at Object.init (/usr/local/lib/node_modules/journo/journo.js:175:12) at Object.run (/usr/local/lib/node_modules/journo/journo.js:240:29) at Object. (/usr/local/lib/node_modules/journo/bin/journo:7:26) at Module._compile (module.js:446:26) at Object..js (module.js:464:10) at Module.load (module.js:353:32) at Function._load (module.js:311:12) at Array.0 (module.js:484:10) at EventEmitter._tickCallback (node.js:190:39)

and I'm way out of my depth...

Cheers, Tobbe

etnt avatar May 03 '13 08:05 etnt

What version of node are you using?

nodejs --version

You might need to install a later version of node (v0.8 or v0.10).

Also, instead of modifying the journo script (which could cause problems), you could link node to nodejs:

sudo ln -s `which nodejs` /usr/local/bin/node
which node
node --version

josher19 avatar Jun 03 '13 05:06 josher19