Error with Openrov software on running


#1

ubuntu@omap:~/openrov-software$ NODE_ENV=production node app.js

module.js:340 throw err; ^ Error: Cannot find module '/home/ubuntu/openrov-software/app.js' at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at Module.runMain (module.js:492:10) at process.startup.processNextTick.process._tickCallback (node.js:244:9) ubuntu@omap:~/openrov-software$

Any thoughts?


#2

change into the src directory. the app.js file should be there.


#3

ubuntu@omap:~$ cd openrov-software/src ubuntu@omap:~/openrov-software/src$ NODE_ENV=production node app.js

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:362:17) at require (module.js:378:17) at Object.<anonymous> (/home/ubuntu/openrov-software/src/app.js:19:15) at Module._compile (module.js:449:26) at Object.Module._extensions..js (module.js:467:10) at Module.load (module.js:356:32) at Function.Module._load (module.js:312:12) at Module.runMain (module.js:492:10)

so close -


#4

If you haven't already done it, you need to run these two lines. For me, the second isn't persistent and I have had to do it repeatedly.

npm config set registry http://registry.npmjs.org/

npm install express socket.io serialport

I'm on the #openrov IRC channel if you want to chat.


#5

i will take you up on that offer - that seemed to work for the express module , now i am getting a ReferenceError: day is not defined