运行 ubuntu 18.04上的节点应用时出现问题

There is a problem when running a node application on ubuntu 18.04

我正在尝试 运行 Azure VM 上的节点站点,但是当 运行ning > SkyCrypt@1.0.0 启动时出现此错误

> node init && node index

internal/modules/cjs/loader.js:1109
    throw err;
    ^

SyntaxError: /home/nim1com/SkyCrypt/credentials.json: Unexpected token v in JSON at position 216
    at parse (<anonymous>)
    at Object.Module._extensions..json (internal/modules/cjs/loader.js:1106:22)
    at Module.load (internal/modules/cjs/loader.js:928:32)
    at Function.Module._load (internal/modules/cjs/loader.js:769:14)
    at Module.require (internal/modules/cjs/loader.js:952:19)
    at require (internal/modules/cjs/helpers.js:88:18)
    at Object.<anonymous> (/home/nim1com/SkyCrypt/init.js:15:21)
    at Module._compile (internal/modules/cjs/loader.js:1063:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
    at Module.load (internal/modules/cjs/loader.js:928:32)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! SkyCrypt@1.0.0 start: `node init && node index`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the SkyCrypt@1.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/nim1com/.npm/_logs/2021-01-19T09_41_40_472Z-debug.log```

这个问题的答案是什么?我试过删除 package-lock.json 和 node_modules

credentials.json

{
    "hypixel_api_key": "26ed366f-80ed-4b49-b912-ef46292c6225",
    "recaptcha_site_key": "",
    "recaptcha_secret_key": "",
    "dbUrl": "mongodb+srv://dbStats:*********@cluster0.4kwsp.mongodb.net/test?retryWrites=true&w=majority",
    "dbName": vmstats",
    "session_secret": "36e47c144b9b9b3e0b9c8bf24c6ac2860c0f76a55b74dcea4007bf355af76789"
}

您的 /home/nim1com/SkyCrypt/credentials.json 文件似乎需要更正...

阅读有关“dbName”中的 v 的错误:vmstats,因为它无效 json – Lawrence Cherone