error on centos

Technical Support
  • #1

    Hello, I am trying to install nodebb on centos 7.
    I got following error```

                            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> (/root/nodebb/src/cli/index.js:6:22)
        at Module._compile (module.js:460:26)
        at Object.Module._extensions..js (module.js:478:10)
    [[email protected] nodebb]#  cd nodebb
    -bash: cd: nodebb: Not a directory
    [[email protected] nodebb]# cd /path/to/nodebb/install/location
    -bash: cd: /path/to/nodebb/install/location: No such file or directory
    [[email protected] nodebb]# cd/path/to/nodebb/install/location git clone -b v.1.10.x nodebb cd nodebb
    -bash: cd/path/to/nodebb/install/location: No such file or directory
    [[email protected] nodebb]#
  • #2

    How to resolve this issue. I cloned successfully into that folder. But It is now saying no such directory when i try to run setup command.

    ```[[email protected] nodebc]# cd /usr/lib/systemd/system/
    [[email protected] system]# git clone -b v1.10.x vabnal
    Cloning into 'vabnal'...
    remote: Enumerating objects: 248, done.
    remote: Counting objects: 100% (248/248), done.
    remote: Compressing objects: 100% (199/199), done.
    remote: Total 177558 (delta 76), reused 110 (delta 49), pack-reused 177310
    Receiving objects: 100% (177558/177558), 52.20 MiB | 15.09 MiB/s, done.
    Resolving deltas: 100% (136339/136339), done.
    [[email protected] system]# cd vabnal
    [[email protected] vabnal]# setup
    -bash: setup: command not found
    [[email protected] vabnal]# ./vabnal setup
    -bash: ./vabnal: No such file or directory
  • GNU/Linux

    Looks like you need to upgrade your Node.js version.

    When you're in vabnal, you need to run ./nodebb setup, not ./vabnal setup

  • #4

    @julian Issue fixed after updating node.js from v6 to v8.
    But Nodebb installed on localhost. How to transfer that to droplet server ip address

Suggested Topics

| | | |