NodeBB Install Error on Amazon Linux
-
Following these directions: https://docs.nodebb.org/installing/os/centos/
Not using Redis, so not installing that. Other than that, following the standard directions and then get this error...
./nodebb setup /opt/nodebb/src/cli/package-install.js:77 const extraneous = !packageContents.dependencies.hasOwnProperty(pkgName); ^^^^^ SyntaxError: Use of const in strict mode. at exports.runInThisContext (vm.js:73:16) at Module._compile (module.js:443:25) at Object.Module._extensions..js (module.js:478:10) at Module.load (module.js:355:32) at Function.Module._load (module.js:310:12) at Module.require (module.js:365:17) at require (module.js:384:17) at Object.<anonymous> (/opt/nodebb/src/cli/index.js:6:22) at Module._compile (module.js:460:26) at Object.Module._extensions..js (module.js:478:10)
-
@scottalanmiller said in NodeBB Install Error on Amazon Linux:
const extraneous = !packageContents.dependencies.hasOwnProperty(pkgName);
^^^^^Saw this
https://community.nodebb.org/topic/12550/issue-installing-nodebb-on-centos-7/6 -
Already using a later Node, hmm... specifically using the recommended one.
-
Good call, the recommended version of NodeJS is wrong!
Switched to 0.10.8 and it worked.
-
@scottalanmiller said in NodeBB Install Error on Amazon Linux:
Good call, the recommended version of NodeJS is wrong!
Switched to 0.10.8 and it worked.
Awesome!
-
@dbeato said in NodeBB Install Error on Amazon Linux:
@scottalanmiller said in NodeBB Install Error on Amazon Linux:
Good call, the recommended version of NodeJS is wrong!
Switched to 0.10.8 and it worked.
Awesome!
Thanks, you pointed me in the right direction. I followed up on that thread, too, as there was no solution there.
-
@scottalanmiller said in NodeBB Install Error on Amazon Linux:
@dbeato said in NodeBB Install Error on Amazon Linux:
@scottalanmiller said in NodeBB Install Error on Amazon Linux:
Good call, the recommended version of NodeJS is wrong!
Switched to 0.10.8 and it worked.
Awesome!
Thanks, you pointed me in the right direction. I followed up on that thread, too, as there was no solution there.
Yeah, I knew the post of the wrong edition but they did not say what they did at the end. So that is awesome!
-
Command was...
nvm use 0.10.8, as it was already installed here, just not in use.