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

    NodeBB Install Error on Amazon Linux

    IT Discussion
    nodebb nodebb 1.10.2 nodejs amazon linux linux
    2
    8
    787
    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

      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)
      
      dbeatoD 1 Reply Last reply Reply Quote 0
      • dbeatoD
        dbeato @scottalanmiller
        last edited by

        @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

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

          Already using a later Node, hmm... specifically using the recommended one.

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

            Good call, the recommended version of NodeJS is wrong!

            Switched to 0.10.8 and it worked.

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

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

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

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

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

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

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

                    Command was...

                    nvm use 0.10.8, as it was already installed here, just not in use.

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