no such file or directory '/home/uuu/node/lib/prelude.roym

46 views
Skip to first unread message

Andrii Melnykov

unread,
Aug 17, 2012, 9:30:07 AM8/17/12
to roy...@googlegroups.com
Hi!

I did the following:

useradd -m uuu
su - uuu
mkdir node
cd node
npm install roy
vim helloworld.roy

Then node_modules/bin/roy -r helloworld.roy works fine, but node_modules/bin/roy helloworld.roy fails with the following:

Error: ENOENT, no such file or directory '/home/uuu/node/lib/prelude.roym'
    at Object.fs.openSync (fs.js:338:18)
    at Object.fs.readFileSync (fs.js:182:15)
    at exports.loadModule (/home/uuu/node/node_modules/roy/src/modules.js:28:32)
    at /home/uuu/node/node_modules/roy/src/compile.js:667:31
    at Array.forEach (native)
    at Function._.each._.forEach (/home/uuu/node/node_modules/roy/node_modules/underscore/underscore.js:74:11)
    at Object.main (/home/uuu/node/node_modules/roy/src/compile.js:666:11)
    at Object.<anonymous> (/home/uuu/node/node_modules/roy/roy:2:26)
    at Module._compile (module.js:449:26)
    at Object.Module._extensions..js (module.js:467:10)

Is it a bug? Should I add it to github issues?


Reply all
Reply to author
Forward
0 new messages