Express: Trying to create a discord bot

Created on 23 Mar 2019  Â·  2Comments  Â·  Source: expressjs/express

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

question

All 2 comments

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! ( "" )

Was this page helpful?
0 / 5 - 0 ratings

Related issues

haider0324 picture haider0324  Â·  3Comments

ZeddYu picture ZeddYu  Â·  3Comments

cuni0716 picture cuni0716  Â·  3Comments

dmaks9 picture dmaks9  Â·  3Comments

Sunriselegacy picture Sunriselegacy  Â·  3Comments