So I have a discord bot that runs on node.js v12. For no apparent reason, it has reset back to v10 and I can’t change it back. Here is my code that is supposed to change it to v12. I feel like I just made a mistake and I can’t see it.
"scripts": { 16 "engines": { "node": "12.x" }, 17 "start": "node index.js" 18 } 19 }
Can you give us your entire package.json? (Just the package.json not the line numbers)
1 Like
{
"name": "SpecMusix",
"version": "0.4.0",
"description": "Discord music bot built with discord.js",
"main": "index.js",
"author": "MrJWOfficial & SpecBot Team",
"private": true,
"dependencies": {
"@discordjs/opus": "^0.3.2",
"discord.js": "^12.0.1",
"simple-youtube-api": "^5.1.1",
"ytdl-core": "^2.0.0",
"ytdl-core-discord": "amishshah/ytdl-core-discord"
},
"scripts" : {
"start": "node index.js"
},
"engines": {
"node": "12.x"
}
}
3 Likes