error on centos



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

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


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

    code_text
    ```[root@centos-s-1vcpu-1gb-nyc3-01 nodebc]# cd /usr/lib/systemd/system/
    [root@centos-s-1vcpu-1gb-nyc3-01 system]# git clone -b v1.10.x https://github.com/NodeBB/NodeBB 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.
    [root@centos-s-1vcpu-1gb-nyc3-01 system]# cd vabnal
    [root@centos-s-1vcpu-1gb-nyc3-01 vabnal]# setup
    -bash: setup: command not found
    [root@centos-s-1vcpu-1gb-nyc3-01 vabnal]# ./vabnal setup
    -bash: ./vabnal: No such file or directory

  • GNU/Linux Admin

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

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



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


Log in to reply
 

Suggested Topics

  • 5
  • 2
  • 4
  • 4
  • 1
| |