Trouble installing NodeBB on OpenShift PaaS
-
Hi,
I'm trying to install nodebb on a openshift machine based on this tutorial: http://www.webhostbug.com/install-nodebb-openshift/
i'm not familiar with node.js.
when i exec this command: "node app --setup" it does ask several things and finally shows an thrown error:
[email protected] node_modules/redis
10/3 06:34 [54553] - info: Populating database with default configs, if not already set...module.js:340
throw err;
^
Error: Cannot find module 'mmmagic'
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> (/var/lib/openshift/--/app-root/runtime/repo/src/file.js:7:12)
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)
-
You can automate it by using this guide.
https://github.com/ahwayakchih/openshift-nodebbOr the one written by me.
https://community.nodebb.org/topic/3866/guide-nodebb-0-6-1-on-openshift-for-windows-users-with-putty/1Or use official NodeBB guide.
https://github.com/NodeBB/nodebb-english/blob/master/installing/cloud/openshift.rstThis is not a bug. You have used npm install command in the wrong folder. Use OpenShift Online in your browser to download NodeBB files to /app-root/runtime/repo and it will work as it should.