AutumnWhj / ChatGPT-wechat-bot

ChatGPT for wechat https://github.com/AutumnWhj/ChatGPT-wechat-bot
MIT License
4.65k stars 983 forks source link

Seems package.json is broken #250

Open BakaFT opened 1 year ago

BakaFT commented 1 year ago

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 commented 1 year ago

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.

MoriiYukino commented 1 year ago

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