Host key verification failed. yarn install 1

Host key verification failed. yarn install

"dependencies": {
     ...
    "discord.js": "github:vecchiotom/discord.js",
    ...
}
  
Don’t use github: prefix, it is very moody, just use 
git+https://github.com/user/repo.git.

Here is what the above code is Doing:
1. It’s importing the discord.js library.
2. It’s creating a new Discord client.
3. It’s logging the bot in using the token from earlier.
4. It’s logging a message to the console when it successfully logs in.
5. It’s logging a message to the console when it disconnects from Discord.
6. It’s logging a message to the console when it encounters an error.
7. It’s logging a message to the console when it receives a message.
8. It’s logging a message to the console when it receives a message that starts with “!ping”.
9. It’s replying to the message with “Pong!”.

Similar Posts