ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Solved NodeBB Setup Error on Amazon Linux

    IT Discussion
    nodebb nodebb 1.10.2 linux amazon linux nodejs
    2
    6
    827
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • scottalanmillerS
      scottalanmiller
      last edited by

      Installing NodeBB on Amazon Linux. Using NodeJS 10.8.0 and when doing the installation and running ./nodebb setup it is giving this error...

      # ./nodebb setup
      internal/modules/cjs/loader.js:583
          throw err;
          ^
      
      Error: Cannot find module 'benchpressjs'
          at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
          at Function.Module._load (internal/modules/cjs/loader.js:507:25)
          at Module.require (internal/modules/cjs/loader.js:637:17)
          at require (internal/modules/cjs/helpers.js:20:18)
          at Object.<anonymous> (/opt/nodebb/install/web.js:13:18)
          at Module._compile (internal/modules/cjs/loader.js:689:30)
          at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
          at Module.load (internal/modules/cjs/loader.js:599:32)
          at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
          at Function.Module._load (internal/modules/cjs/loader.js:530:3)
      
      1 Reply Last reply Reply Quote 0
      • scottalanmillerS
        scottalanmiller
        last edited by

        Oops, we didn't not resolve this and moved to CentOS and there was no further issue.

        1 Reply Last reply Reply Quote 0
        • scottalanmillerS
          scottalanmiller
          last edited by

          @scottalanmiller said in NodeBB Setup Error on Amazon Linux:

          Error: Cannot find module 'benchpressjs'

          Obviously it looks like benchpressjs is missing. So if I try to install that...

          # npm install benchpressjs
          
          > [email protected] install /opt/nodebb/node_modules/benchpressjs
          > cd rust/benchpress-rs && npm install
          
          sh: npm: command not found
          npm ERR! file sh
          npm ERR! code ELIFECYCLE
          npm ERR! errno ENOENT
          npm ERR! syscall spawn
          npm ERR! [email protected] install: `cd rust/benchpress-rs && npm install`
          npm ERR! spawn ENOENT
          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-22T23_08_22_254Z-debug.log
          
          1 Reply Last reply Reply Quote 0
          • scottalanmillerS
            scottalanmiller
            last edited by

            I love how we get an npm command not found error... while running NPM!

            dbeatoD 1 Reply Last reply Reply Quote 2
            • dbeatoD
              dbeato @scottalanmiller
              last edited by

              @scottalanmiller said in NodeBB Setup Error on Amazon Linux:

              I love how we get an npm command not found error... while running NPM!

              Are the NPM binaries linked or in /usr/bin?

              scottalanmillerS 1 Reply Last reply Reply Quote 0
              • scottalanmillerS
                scottalanmiller @dbeato
                last edited by

                @dbeato said in NodeBB Setup Error on Amazon Linux:

                @scottalanmiller said in NodeBB Setup Error on Amazon Linux:

                I love how we get an npm command not found error... while running NPM!

                Are the NPM binaries linked or in /usr/bin?

                # which npm
                /root/.nvm/versions/node/v8.13.0/bin/npm
                
                1 Reply Last reply Reply Quote 1
                • scottalanmillerS
                  scottalanmiller
                  last edited by

                  Oops, we didn't not resolve this and moved to CentOS and there was no further issue.

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post