I'm trying to get the PlugUI working, but this thing is bugging me. I don't know anything about node, so I have no idea what to do.
When I try to launch the server, I get this:
- Code: Select all
[root@Magneto PlugUI]# node server.js
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: Cannot find module 'connect-form'
at Function._resolveFilename (module.js:332:11)
at Function._load (module.js:279:25)
at Module.require (module.js:354:17)
at require (module.js:370:17)
at Object.<anonymous> (/opt/PlugUI/server.js:12:12)
at Module._compile (module.js:441:26)
at Object..js (module.js:459:10)
at Module.load (module.js:348:31)
at Function._load (module.js:308:12)
at Array.0 (module.js:479:10)
When I try to install connect-form with npm, I get this:
- Code: Select all
[root@Magneto PlugUI]# npm install connect-form
npm http GET https://registry.npmjs.org/connect-form
npm http 304 https://registry.npmjs.org/connect-form
npm http GET https://registry.npmjs.org/formidable
npm http 304 https://registry.npmjs.org/formidable
connect-form@0.2.1 ./node_modules/connect-form
âââ formidable@1.0.9
But when I try to start the server again, the same error as before is shown. I have no idea.

PS: I tried starting the server with rc.d, but it did not start, that's why I tried with node and got those errors.