4v3ngR / pluto_tv_scraper

Generate an m3u8 and xml (epg) for pluto tv channels
https://www.npmjs.com/package/plutotv-scraper
MIT License
19 stars 6 forks source link

Last commit generate a nodejs version error #13

Closed jeepcook closed 8 months ago

jeepcook commented 8 months ago

On the last LTS Ubuntu version, the nodjs isn't compatible with the last commits done today.

Here is the error:

plutotv-scraper --group country --all ERROR: nodejs is too old. Version 14 or greater is required. ERROR: 12.22.9 installed

Note that the 23.10 isn't a stable Ubuntu release, the next LTS will be 22.04.

Thanks

wazerstar commented 8 months ago

Try in the dir

npm install

jeepcook commented 8 months ago

Try in the dir

npm install

npm install npm WARN EBADENGINE Unsupported engine { npm WARN EBADENGINE package: 'commander@11.1.0', npm WARN EBADENGINE required: { node: '>=16' }, npm WARN EBADENGINE current: { node: 'v12.22.9', npm: '8.5.1' } npm WARN EBADENGINE }

added 1 package, and audited 13 packages in 1s

1 package is looking for funding run npm fund for details

found 0 vulnerabilities

plutotv-scraper --group country --all ERROR: nodejs is too old. Version 14 or greater is required. ERROR: 12.22.9 installed

And I don't want to upgrade my Ubuntu distribution for a non stable one.

jeepcook commented 8 months ago

Finally after after having documented myself, I've found the information that the last LTS version for nodejs is v20.x. So I've decided to install the nodejs third part repository and force NODE_MAJOR=20. So in conclusion now I have node in v20.11.0 version and the scraper is now repaired for my part.

4v3ngR commented 8 months ago

I hadn't realised that commander required node 16 (I had already installed it prior to updating the package.json. I'll update minimum version checks to 16.

Note also, that node 12 stopped receiving security updates almost 2 years ago.