kriszyp / nodules

Asynchronous URL-based CommonJS module loader for Node with automated dependency resolution and module reloading
http://www.persvr.org/
197 stars 20 forks source link

Unable to run nodules. #9

Closed Blacktiger closed 14 years ago

Blacktiger commented 14 years ago

I installed node and npm on my Mac using Homebrew. Then I ran npm install nodules. Then I created a test folder with the suggested local.json file from the perstore readme. Finally I attempted to run nodules in that directory. Unfortunately it seems to be looking at the wrong path.

Gandalf:Code blktiger$ cd persvrTest/
Gandalf:persvrTest blktiger$ nodules

node.js:63
    throw e;
    ^
Error: ENOENT, No such file or directory '/Users/blktiger/Code/persvrTest/lib'
    at Object.lstatSync (fs:322:18)
    at Object.realpathSync (fs:498:19)
    at Object.runAsMain (/usr/local/lib/node/.npm/nodules/0.2.1/package/lib/nodules.js:124:24)
    at Object.<anonymous> (/usr/local/lib/node/.npm/nodules/0.2.1/package/cli.js:4:37)
    at Module._compile (node.js:462:23)
    at Module._loadScriptSync (node.js:469:10)
    at Module.loadSync (node.js:338:12)
    at loadModule (node.js:283:14)
    at require (node.js:411:14)
    at Object.<anonymous> (/usr/local/share/npm/bin/nodules:8:18)
Gandalf:persvrTest blktiger$ 
kriszyp commented 14 years ago

You need to have a package.json and a starting file. A good starting point is http://github.com/kriszyp/persevere-example-wiki

Blacktiger commented 14 years ago

Ah, thanks. I'm just trying to get started with this stuff and the installation directions aren't real clear yet.