I am a new developer here, and I met some problem with discord.js, please help me
There's my code
#!/usr/local/bin/node
require("dotenv").config();
const { Client, GatewayIntentBits } = require('discord.js');
const client = new Client({ intents: [GatewayIntentBits.Guilds] });
client.on("ready", () => {
console.log(`logged in as ${client.user.tag}`);
});
client.login(process.env.TOKEN);
and this is the errors
node:internal/process/promises:279
triggerUncaughtException(err, true /* fromPromise */);
^
Error: unable to verify the first certificate
at TLSSocket.onConnectSecure (node:_tls_wrap:1539:34)
at TLSSocket.emit (node:events:513:28)
at TLSSocket._finishInit (node:_tls_wrap:953:8)
at TLSWrap.ssl.onhandshakedone (node:_tls_wrap:734:12) {
code: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE'
}

