Persistent warning when using play command of DisTube

214 Views Asked by At

My code's working but I keep getting the same warning which is :

WARNING: @distube/ytsr is out of date! Update with "npm install @distube/ytsr@latest".

I tried installing @distube/ytsr@latest as it's said but I keep getting the warning.

Also, the warning also appears when I launch my code with "node --no-warnings main.js"

It's not really a big trouble but I'd still like to solve it.

1

There are 1 best solutions below

0
Fariz Luqman On

From @distube/ytsr npm page, you can actually set the environment variable YTSR_NO_UPDATE to 1 to disable the update check.

You can also set the variable directly like this before your Distube initialization

process.env.YTSR_NO_UPDATE = "1";