Issue installing NodeBB on Centos 7

  • Global Moderator Plugin & Theme Dev

    @scottalanmiller WHAT?! What version of NodeBB are you trying to use? Node 0.10.8 is ages old and certainly doesn't support const.

  • Community Rep

    Should have been 10.8.0, sorry.

  • GNU/Linux Admin

    Wonder what that error was... did we end up fixing it 🤔

  • Community Rep

    @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.

  • Community Rep

    Related, I think, getting this from any version of NodeJS...

    OK
    Dependencies outdated or not yet installed.
    Installing them now...
    
    npm WARN deprecated circular-json@0.3.3: CircularJSON is in maintenance only, flatted is its successor.
    npm WARN deprecated cryptiles@2.0.5: This version is no longer maintained. Please upgrade to the latest version.
    npm WARN deprecated boom@2.10.1: This version is no longer maintained. Please upgrade to the latest version.
    npm WARN deprecated hoek@2.16.3: This version is no longer maintained. Please upgrade to the latest version.
    
    > benchpressjs@1.2.7 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 eslint-config-airbnb-base@12.1.0 requires a peer of eslint@^4.9.0 but none is installed. You must install peer dependencies yourself.
    npm WARN ajv-keywords@3.2.0 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! benchpressjs@1.2.7 install: `cd rust/benchpress-rs && npm install`
    npm ERR! Exit status 243
    npm ERR! 
    npm ERR! Failed at the benchpressjs@1.2.7 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)
    
    
  • Global Moderator Plugin & Theme Dev

    @scottalanmiller are you running any NodeBB commands as root?

  • Community Rep

    @PitaJ said in Issue installing NodeBB on Centos 7:

    @scottalanmiller are you running any NodeBB commands as root?

    Yes, the installer.

  • Global Moderator Plugin & Theme Dev

    @scottalanmiller running any ./nodebb command as root is not supported. You should install and run NodeBB as an unprivileged user.

  • Global Moderator Plugin & Theme Dev

    If you wish to fix this, though, you should be able to run npm install in the NodeBB directory as root to resolve it.

  • Community Rep

    @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.

Suggested Topics

| |