while trying to run the installation command for the cli tools
$ NOCLIENT=1 yarn install --pure-lockfile
$ npm run setup:cli
I get these errors:
at onParseError (internal/url.js:257:9)
at new URL (internal/url.js:333:5)
at Object.getClient (/home/jibri/PeerTube/dist/shared/extra-utils/server/clients.js:11:22)
at Object.<anonymous> (/home/jibri/PeerTube/dist/shared/extra-utils/users/login.js:67:43)
at Generator.next (<anonymous>)
at /home/jibri/PeerTube/node_modules/tslib/tslib.js:117:75
at new Promise (<anonymous>)
at Object.__awaiter (/home/jibri/PeerTube/node_modules/tslib/tslib.js:113:16)
at Object.getAccessToken (/home/jibri/PeerTube/dist/shared/extra-utils/users/login.js:66:20)
at /home/jibri/PeerTube/dist/server/tools/peertube-upload.js:45:49 {
input: 'tube.vvv.cash',
code: 'ERR_INVALID_URL'
}
jibri@connect:~/PeerTube$ npm install setup:cli
npm ERR! code EUNSUPPORTEDPROTOCOL
npm ERR! Unsupported URL Type "setup:": setup:cli
npm ERR! A complete log of this run can be found in:
npm ERR! /home/jibri/.npm/_logs/2021-03-03T10_41_59_645Z-debug.log
jibri@connect:~/PeerTube$ npm run setup:cli
> peertube@3.0.1 setup:cli /home/jibri/PeerTube
> scripty
sh: 1: scripty: not found
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! peertube@3.0.1 setup:cli: `scripty`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the peertube@3.0.1 setup:cli script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?
npm ERR! A complete log of this run can be found in:
npm ERR! /home/jibri/.npm/_logs/2021-03-03T10_42_03_416Z-debug.log
jibri@connect:~/PeerTube$
root@connect /home/jibri # cat /root/.npm/_logs/2021-03-03T10_48_01_862Z-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'run', 'setup:cli' ]
2 info using npm@6.14.11
3 info using node@v12.20.2
4 verbose stack Error: ENOENT: no such file or directory, open '/home/jibri/package.json'
5 verbose cwd /home/jibri
6 verbose Linux 5.4.0-66-generic
7 verbose argv "/usr/bin/node" "/usr/bin/npm" "run" "setup:cli"
8 verbose node v12.20.2
9 verbose npm v6.14.11
10 error code ENOENT
11 error syscall open
12 error path /home/jibri/package.json
13 error errno -2
14 error enoent ENOENT: no such file or directory, open '/home/jibri/package.json'
15 error enoent This is related to npm not being able to find a file.
16 verbose exit [ -2, true ]