Bonjour,
Je suis en train d’installer une instance peertube sur un serveur avec Debian 10. Je n’ai pas encore attaqué la partie configuration, mais la commande d’installation à retourné un certain nombre de warnings inquiétants et j’aimerais savoir si je peux les ignorer ou s’il faut que fasse en sorte qu’ils disparaissent.
> sudo -H -u peertube yarn install --production --pure-lockfile
yarn install v1.22.5
[1/5] Validating package.json...
warning peertube@3.1.0: The engine "postgres" appears to be invalid.
warning peertube@3.1.0: The engine "redis-server" appears to be invalid.
warning peertube@3.1.0: The engine "ffmpeg" appears to be invalid.
[2/5] Resolving packages...
warning Resolution field "oauth2-server@3.1.0-beta.1" is incompatible with requested version "oauth2-server@3.0.0"
warning Resolution field "http-signature@1.3.5" is incompatible with requested version "http-signature@~1.2.0"
success Already up-to-date.
$ test -n "$NOCLIENT" || (cd client && yarn install --pure-lockfile)
warning Cannot find a suitable global folder. Tried these: "/usr/local, /var/www/peertube/.yarn"
yarn install v1.22.5
[1/4] Resolving packages...
success Already up-to-date.
Done in 0.86s.
Done in 1.85s.
J’ai les versions suivantes des « engines » incriminés:
> redis-server -v
Redis server v=5.0.3 sha=00000000:0 malloc=jemalloc-5.1.0 bits=64 build=94145a25ce04923
> psql -V
psql (PostgreSQL) 11.11 (Debian 11.11-0+deb10u1)
> ffmpeg -version
ffmpeg version 4.1.6-1~deb10u1
et en ce qui concerne le dernier warning, j’ai bien un dossier /var/www/peertube/.yarn , mais il est a root. Est-ce qu’il faut que je le transfère à peertube pour qu’il soit trouvé?
/var/www/peertube> ls -al
total 56
drwxr-xr-x 8 peertube peertube 4096 May 9 17:31 .
drwxr-xr-x 4 root root 4096 May 9 14:48 ..
-rw-r--r-- 1 peertube peertube 220 Apr 18 2019 .bash_logout
-rw-r--r-- 1 peertube peertube 3526 Apr 18 2019 .bashrc
drwxr-xr-x 3 peertube peertube 4096 May 9 17:31 .cache
drwx------ 3 peertube peertube 4096 May 9 17:31 .config
drwxr-x--- 2 peertube peertube 4096 May 9 14:57 config
lrwxrwxrwx 1 peertube peertube 24 May 9 15:00 peertube-latest -> versions/peertube-v3.1.0
-rw-r--r-- 1 peertube peertube 807 Apr 18 2019 .profile
drwxr-xr-x 2 peertube peertube 4096 May 9 14:57 storage
drwxr-xr-x 3 peertube peertube 4096 May 9 14:59 versions
-rw-r--r-- 1 peertube peertube 227 May 9 14:58 .wget-hsts
drwxr-xr-x 3 root root 4096 May 9 17:30 .yarn
-rw-r--r-- 1 root root 129 May 9 17:28 .yarnrc
-rw-r--r-- 1 root root 41 May 9 17:30 .yarnrc.yml
Est-ce que le problème peut être lié au fait que j’ai d’abord utilisé sudo yarn set version berry
pour installer la version la plus récente de yarn, avant de me rendre compte que la commande d’installation utilise des options incompatibles avec yarn 2? (Du coup j’ai revert avec sudo yarn set version 1.22.5
, c’est à dire la dernière version stable de yarn 1.)