Peertube: Error on yarn install: `The engine "node" is incompatible with this module`

Created on 11 Oct 2019  路  1Comment  路  Source: Chocobozzz/PeerTube

Following the steps for manual installation, I got to the "Install PeerTube" step and got a failure on the yarn install:

/var/www/peertube/peertube-latest$ sudo -H -u peertube yarn install --production --pure-lockfile
yarn install v1.19.1
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
error [email protected]: The engine "node" is incompatible with this module. Expected version "^8.12.0 || >=9.7.0". Got "8.10.0"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

PeerTube version 1.4.1 was downloaded via the previous steps

/var/www/peertube/peertube-latest$ ls ..
peertube-v1.4.1
$ node -v
v10.16.3

Most helpful comment

I feel silly.

I was using nodenv to manage versions, and since I'm not used to thinking about production, I forgot that it's encouraged to just install the desired node version at the system level for a production instance.

All it took was an upgrade to node 10 (from node 8.10.0), as follows:

$ curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
$ sudo apt-get install -y nodejs
$ node -v
v10.16.3

>All comments

I feel silly.

I was using nodenv to manage versions, and since I'm not used to thinking about production, I forgot that it's encouraged to just install the desired node version at the system level for a production instance.

All it took was an upgrade to node 10 (from node 8.10.0), as follows:

$ curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
$ sudo apt-get install -y nodejs
$ node -v
v10.16.3
Was this page helpful?
0 / 5 - 0 ratings

Related issues

XenonFiber picture XenonFiber  路  3Comments

conferences-gesticulees picture conferences-gesticulees  路  3Comments

filmaidykai picture filmaidykai  路  3Comments

Jorropo picture Jorropo  路  3Comments

XenonFiber picture XenonFiber  路  3Comments