googlecreativelab / coder

A simple way to make web stuff on Raspberry Pi
http://goo.gl/coder
Apache License 2.0
2.42k stars 276 forks source link

Error module not found on (nodejs server.js) #56

Closed Puresoft closed 9 years ago

Puresoft commented 10 years ago

After a manuall install on raspberry pi I got the error module not found in /coder/coder-base/apps/auth/app.

I saw there was modification 16 days ago in this dir. (Files where moved...)

pi@rhpi ~/coder/coder-base $ nodejs server.js

module.js:337
    throw new Error("Cannot find module '" + request + "'");
          ^
Error: Cannot find module '/home/pi/coder/coder-base/apps/auth/app'
    at Function._resolveFilename (module.js:337:11)
    at Function._load (module.js:279:25)
    at Module.require (module.js:359:17)
    at require (module.js:375:17)
    at /home/pi/coder/coder-base/server.js:187:23
    at Object.<anonymous> (/home/pi/coder/coder-base/server.js:278:1)
    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)

thanks Robert

jmstriegel commented 10 years ago

I'm moving some things around to make it easier to have Pi and OS X / Linux versions. You'll need to install the relevant apps before it'll work.

  cd ~/coder-dist/coder-apps/

Install the base apps that are common to all platforms:

  ./install_common.sh ../coder-base/

Then, if you want them, install the app versions that are tweaked for Pi:

  ./install_pi.sh ../coder-base/