Issue installing NodeBB on Centos 7
-
You can also find NodeJS packages for RHEL and CENT at NodeSource: https://github.com/nodesource/distributions
Or you can use Docker. That would give you even an additional layer of security.
-
Thank you very much guys I managed to get it sorted, not really sure how haha
-
Same issue came up, NodeBB install errors on Amazon Linux. But the issue there was using NodeJS that was too new, rather than too old. Used NVM and dropped the version down to 10.8.0 and it worked fine.
-
@scottalanmiller WHAT?! What version of NodeBB are you trying to use? Node 0.10.8 is ages old and certainly doesn't support
const
. -
Should have been 10.8.0, sorry.
-
@julian said in Issue installing NodeBB on Centos 7:
Wonder what that error was... did we end up fixing it
No, getting issues on CentOS 7 still, too.
-
Related, I think, getting this from any version of NodeJS...
OK Dependencies outdated or not yet installed. Installing them now... npm WARN deprecated [email protected]: CircularJSON is in maintenance only, flatted is its successor. npm WARN deprecated [email protected]: This version is no longer maintained. Please upgrade to the latest version. npm WARN deprecated [email protected]: This version is no longer maintained. Please upgrade to the latest version. npm WARN deprecated [email protected]: This version is no longer maintained. Please upgrade to the latest version. > [email protected] install /opt/nodebb2/node_modules/benchpressjs > cd rust/benchpress-rs && npm install npm WARN invalid config loglevel="notice" npm ERR! Linux 3.10.0-862.14.4.el7.x86_64 npm ERR! argv "/usr/bin/node" "/bin/npm" "install" npm ERR! node v6.14.3 npm ERR! npm v3.10.10 npm ERR! path /root/.npm/neon-cli/0.2.0/package npm ERR! code EACCES npm ERR! errno -13 npm ERR! syscall mkdir npm ERR! Error: EACCES: permission denied, mkdir '/root/.npm/neon-cli/0.2.0/package' npm ERR! at Error (native) npm ERR! { Error: EACCES: permission denied, mkdir '/root/.npm/neon-cli/0.2.0/package' npm ERR! at Error (native) npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'mkdir', npm ERR! path: '/root/.npm/neon-cli/0.2.0/package', npm ERR! parent: 'benchpress-rs' } npm ERR! npm ERR! Please try running this command again as root/Administrator. npm ERR! Please include the following file with any support request: npm ERR! /opt/nodebb2/node_modules/benchpressjs/rust/benchpress-rs/npm-debug.log npm WARN [email protected] requires a peer of eslint@^4.9.0 but none is installed. You must install peer dependencies yourself. npm WARN [email protected] requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself. npm ERR! code ELIFECYCLE npm ERR! errno 243 npm ERR! [email protected] install: `cd rust/benchpress-rs && npm install` npm ERR! Exit status 243 npm ERR! npm ERR! Failed at the [email protected] install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above. npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2018-11-26T20_52_31_930Z-debug.log Error installing dependencies! message: Command failed: npm install --production stdout: null stderr: null /opt/nodebb2/src/cli/package-install.js:54 throw e; ^ Error: Command failed: npm install --production at checkExecSyncError (child_process.js:621:11) at Object.execSync (child_process.js:658:13) at Object.installAll (/opt/nodebb2/src/cli/package-install.js:45:9) at Object.<anonymous> (/opt/nodebb2/src/cli/index.js:58:18) at Module._compile (internal/modules/cjs/loader.js:722:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:733:10) at Module.load (internal/modules/cjs/loader.js:620:32) at tryModuleLoad (internal/modules/cjs/loader.js:560:12) at Function.Module._load (internal/modules/cjs/loader.js:552:3) at Module.require (internal/modules/cjs/loader.js:658:17)
-
@scottalanmiller are you running any NodeBB commands as root?
-
@PitaJ said in Issue installing NodeBB on Centos 7:
@scottalanmiller are you running any NodeBB commands as root?
Yes, the installer.
-
@scottalanmiller running any
./nodebb
command as root is not supported. You should install and run NodeBB as an unprivileged user. -
If you wish to fix this, though, you should be able to run
npm install
in the NodeBB directory as root to resolve it. -
@PitaJ said in Issue installing NodeBB on Centos 7:
@scottalanmiller running any
./nodebb
command as root is not supported. You should install and run NodeBB as an unprivileged user.Doh. Obviously. Thanks, having a brainfart from lack of sleep.