Skip to content
This repository has been archived by the owner on Dec 14, 2020. It is now read-only.

EJSONPARSE issue #212

Closed
Kremzion opened this issue Mar 7, 2019 · 7 comments
Closed

EJSONPARSE issue #212

Kremzion opened this issue Mar 7, 2019 · 7 comments
Labels

Comments

@Kremzion
Copy link

Kremzion commented Mar 7, 2019

so when I tried to execute dependencies, this is what the error says:

C:\Users\Kremzion\Desktop\Kremzbot>npm install discord.io winston --save
npm ERR! file C:\Users\Kremzion\Desktop\Kremzbot\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\Kremzion\AppData\Roaming\npm-cache_logs\2019-03-07T10_25_33_635Z-debug.log

I don't see any differences in "package.json" and in the sample given on the blog.
Please reply as soon as possible, thank you.

@gand988
Copy link

gand988 commented Mar 9, 2019

you will need to rewrite all the " in the package.json file and will work.

@ayetofu
Copy link

ayetofu commented Mar 10, 2019

@gand988 I'm having the same issue and your explanation didn't help much can you explain differently please?

@gand988
Copy link

gand988 commented Mar 10, 2019

TL;DR You just need to replace all the quotation mark.

@ayetofu ok,
the error says "npm ERR! JSON.parse package.json must be actual JSON, not just JavaScript."

If you just copy-paste the "package.json" code from a website, there is a chance that the quotation marks are left/right double quotation mark, because how they wrote the article.

here's the difference
error -> “name”
ok -> "name"

Hope to be more clear.

@ayetofu
Copy link

ayetofu commented Mar 10, 2019

@gand988 it did thank you! can i message you on discord for further help?

@gand988
Copy link

gand988 commented Mar 10, 2019

@gand988 it did thank you! can i message you on discord for further help?

check my portfolio and DM me on twitter

@Harleqoon
Copy link

@gand988 I tried to do what you said and it literally did nothing, can I have some help please?

@stale
Copy link

stale bot commented Jun 11, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants