@Shard said in Error trying to checkout 1.5.x branch:
No worries. Better safe than sorry. L:)
So true
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)
[[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 https://github.com/NodeBB/NodeBB nodebb cd nodebb
-bash: cd/path/to/nodebb/install/location: No such file or directory
[[email protected] 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
```[[email protected] nodebc]# cd /usr/lib/systemd/system/
[[email protected] 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.
[[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