I am trying to install and configure STH-Comet, but I am having difficulties and I could not solve it.
I'm following the existing tutorial. And some errors occur in the process. I would like your help if possible.
After cloning the repository and entering the directory, when I run the command: npm install, two situations occur:
1- If it is not as root the errors are presented:
2 - If it is as root the errors increase, they are:
I also tried to install and configure via rpm. I do not have the above errors, but when I run ./bin/sth the following error appears.
`` `/opt/sth/node_modules/logops/lib/logops.js:27
let opts = merge({
^^^^
SyntaxError: Unexpected identifier
at Module._compile (module.js:439:25)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/opt/sth/lib/sth.js:27:17)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)` ``
How can I solve this?
Let me share the procedure I follow, in the case it helps.
Node environment (installed through nvm):
First, download the code:
Then, install packages:
Next, edit
config.js
to configure STH (look STH for details about this file). I have usedconfig.js
"as is" from the repository.Finally, run the service:
If log shows a message like this, then it has been started correctly:
You can check it's running with a "dummy" request. For instance: