AnnaGerber / node-ardx

Arduino Experimentors Guide adapted for nodebots
121 stars 52 forks source link

Packages missing from node-ardx #8

Closed KatieK2 closed 10 years ago

KatieK2 commented 10 years ago

After cloning node-rdx, I ran it via node app.js. I got this error:

module.js:340
    throw err;
          ^
Error: Cannot find module 'express'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/Users/katiek/git/node-ardx/app.js:1:77)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)

So I installed express (npm install express of course) and ran node app.js again. Then I got this:

module.js:340
    throw err;
          ^
Error: Cannot find module 'markedejs'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/Users/katiek/git/node-ardx/routes/routes.js:2:17)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)

But alas:

npm ERR! 404 'markedjs' is not in the npm registry.

(Let me know if you want a full debug log.)

How can I proceed with running the node-ardx app?

PS - Thanks for this work - it's super awesome!

AnnaGerber commented 10 years ago

hmm, markedejs is on npm here: https://www.npmjs.org/package/markedejs

express is listed in the dependencies in package.json so it should have installed when you did an npm install in the node-ardx directory

But I'll take a look into it on the weekend - what version of nodejs are you using?

KatieK2 commented 10 years ago

My node is v0.10.18.

D'oh! I see that it's "markedejs", not "markedjs". Obviously I need to do more copying and pasting and less typing.

Ok, now node app.js works.

Sorry for the trouble!

AnnaGerber commented 10 years ago

No problem, thanks for your other pull request too. This is working for me too, after running npm install first. So I'll close this ticket.