Because ytdl-core
and many of it's dependencies have an irrational engine requirement of Node.js >=10, and we're using Node 8.x
This leads to an error while using yarn install
with a Node.js version that is lower then 10.x
Bump ytdl-core
if needed in package.json
: https://github.com/Stremio/ytdl-core-blob/blob/master/package.json#L12
Then:
npm i
npm start
This will webpack ytdl-core
to ./index.js
which is then used as the entry point for this module, removing the Node.js >=10 requirement.
Now commit the new pre-built version of ytdl-core
(index.js
) and use ytdl-core-blob
from this repository instead of ytdl-core
itself.