logalert
logalert copied to clipboard
Ubuntu 22.04.2 LTS Server - Error when running 'sudo logalert boot' after configuration
Successful: Installed under sudo -i terminal using 'sudo npm install -g logalert' to run as service.
Successful: Initial run of 'sudo logalert boot' responds with expected config.json message.
Fails: Second run of 'sudo logalert boot' after known working config.json copied into ./usr/bin/
Error log attached.
All module files present in expected default location /lib/node_modules/logalert
Error thrown: 2023-03-11T14_02_46_766Z-debug-0.log
Shell exec error: Error: Command failed: npm run boot npm ERR! code ENOENT npm ERR! syscall open npm ERR! path /usr/bin/package.json npm ERR! errno -2 npm ERR! enoent ENOENT: no such file or directory, open '/usr/bin/package.json' npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent
npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2023-03-11T14_02_46_766Z-debug-0.log