Installing PeerTube

– Process failed at initiation:
peertube.service: Failed to execute command: No such file or directory
peertube.service: Failed at step EXEC spawning /usr/bin/npm: No such file o r directory
peertube.service: Main process exited, code=exited, status=203/EXEC
peertube.service: Failed with result ‹ exit-code ›.
peertube.service: Service hold-off time over, scheduling restart.
peertube.service: Failed to execute command: No such file or directory

– Later: ----------------

Started PeerTube daemon.

peertube@2.2.0 start /var/www/peertube/peertube-latest
node dist/server
module.js:549
throw err;
^
Error: Cannot find module ‹ tsconfig-paths ›
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object. (/var/www/peertube/peertube-latest/dist/server/he lpers/register-ts-paths.js:4:23)
at Module._compile (module.js:652:30)
at Object.Module._extensions…js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
npm ERR! Linux 4.15.0-106-generic
npm ERR! argv « /usr/bin/node » « /usr/bin/npm » « start »
npm ERR! node v8.10.0
npm ERR! npm v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! peertube@2.2.0 start: node dist/server
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the peertube@2.2.0 start script ‹ node dist/server ›.
npm ERR! Make sure you have the latest version of node.js and npm installed .
npm ERR! If you do, this is most likely a problem with the peertube package ,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node dist/server
npm ERR! You can get information on how to open an issue for this project w ith:
npm ERR! npm bugs peertube
npm ERR! Or if that isn’t available, you can get their info via:
npm ERR! npm owner ls peertube
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /var/www/peertube/peertube-latest/npm-debug.log
peertube.service: Main process exited, code=exited, status=1/FAILURE
peertube.service: Failed with result ‹ exit-code ›.
peertube.service: Service hold-off time over, scheduling restart.
peertube.service: Scheduled restart job, restart counter is at 7.
Stopped PeerTube daemon.