Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Seems package.json is broken #250

Open
BakaFT opened this issue Jun 9, 2023 · 2 comments
Open

Seems package.json is broken #250

BakaFT opened this issue Jun 9, 2023 · 2 comments

Comments

@BakaFT
Copy link

BakaFT commented Jun 9, 2023

When I tried to npm i, error occurs:

root@bakaft-sfo3:~/ChatGPT-wechat-bot# npm i
npm ERR! code EJSONPARSE
npm ERR! path /root/ChatGPT-wechat-bot/package.json
npm ERR! JSON.parse Unexpected token "}" (0x7D) in JSON at position 508 while parsing near "...\": \"lint-staged\",\n  },\n  \"keywords\": [\n ..."
npm ERR! JSON.parse Failed to parse JSON data.
npm ERR! JSON.parse Note: package.json must be actual JSON, not just JavaScript.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2023-06-09T09_57_14_515Z-debug-0.log
root@bakaft-sfo3:~/ChatGPT-wechat-bot# npm -v
9.5.1
@BakaFT
Copy link
Author

BakaFT commented Jun 9, 2023

It's obvious that error lies in : https://github.com/AutumnWhj/ChatGPT-wechat-bot/blob/master/package.json#L13.
Just delete the last comma symbol and you can use npm i now.

I'm curious that is this only happening to me or something special results in this(like npm version?). I don't see anybody else encountered this problem in issues.

@BakaFT BakaFT changed the title Seems package.json broken again Seems package.json is broken Jun 9, 2023
@MoriiYukino
Copy link

MoriiYukino commented Jun 11, 2023

i have this problem too,just delete the "," near "...": "lint-staged"
but i feel strange too

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

No branches or pull requests

2 participants