Hey so I tried to create a discord bot lately, when I tried to install the packages it gave me this issue
C:\Users\User-PC\Desktop\Bot>npm install discord.io winston -save.
npm ERR! file C:\Users\User-PC\Desktop\Bot\package.json
npm ERR! code EJSONPARSE
npm ERR! JSON.parse Failed to parse json
npm ERR! JSON.parse Unexpected token ďż˝ in JSON at position 3 while parsing near '{
npm ERR! JSON.parse �name�: �greeter-bot...'
npm ERR! JSON.parse Failed to parse package.json data.
npm ERR! JSON.parse package.json must be actual JSON, not just JavaScript.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\User-PC\AppData\Roaming\npm-cache\_logs\2019-03-23T11_40_15_695Z-debug.log
Here is my package.json file
{
“name”: “greeter-bot”,
“version”: “1”,
“description”: “Sobby can do all sorts fo stuff!”,
“main”: “bot.js”,
“author”: “Laycrab TTV”,
“dependencies”: {}
}
Thank you for your help
Try the below in your package.json
{
"name": "greeter-bot",
"version": "1",
"description": "Sobby can do all sorts fo stuff!",
"main": "bot.js",
"author": "Laycrab TTV",
"dependencies": {}
}
Make sure to be using correct quotations! ( "" )