Reputation: 13
I should caveat this by stating that:
I am essentially just trying to get the bot setup, and was attempting to install the bot dependencies when this occurred:
D:\>cd\Discord Bots\Ark FTW
D:\Discord Bots\Ark FTW>npm install discord.io winston-save
npm ERR! file D:\Discord Bots\Ark FTW\package.json
npm ERR! code EJSONPARSE
npm ERR! Failed to parse json
npm ERR! Unexpected token “ in JSON at position 3 while parsing near '{
npm ERR! “name”: “Ark FTW”,
npm ERR! ...'
npm ERR! File: D:\Discord Bots\Ark FTW\package.json
npm ERR! Failed to parse package.json data.
npm ERR! package.json must be actual JSON, not just JavaScript.
npm ERR!
npm ERR! Tell the package author to fix their package.json file. JSON.parse
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\temp5\AppData\Roaming\npm-cache\_logs\2018-08-28T18_14_53_243Z-debug.log
I used a block of code from a tutorial just to get the bot setup, but I have no clue what syntax error I am looking for despite trying to figure it out for the last two hours. I assume it something that will be obvious to anyone with a crumb of experience, but that is not me.
This is the JSON file in it's entirety:
{
“name”: “Ark FTW”,
“version”: “1.0.0”,
“description”: “I wanna be a real bot!”,
“main”: “bot.js”,
“author”: “Soldiercide”,
“dependencies”: {}
}
I'm sorry for what is probably a stupid question, and I appreciate any direction you folks might be willing to provide.
Upvotes: 1
Views: 5910