【发布时间】:2022-02-07 22:31:30
【问题描述】:
我正在尝试调试我的 nodejs 应用程序,但在运行 javascript 调试器时,它显示错误。
这是我项目的 package.json 文件。
{
"name": "server",
"version": "1.0.0",
"description": "server side",
"main": "index.js",
"scripts": {
"start": "nodemon index.js",
"debug": "nodemon --inspect index.js"
},
"keywords": [],
"dependencies": {
"aws-sdk": "^2.1069.0",
"bcryptjs": "^2.4.3",
"body-parser": "^1.19.1",
"cors": "^2.8.5",
"dotenv": "^16.0.0",
"express": "^4.17.2",
"express-validator": "^6.14.0",
"jsonwebtoken": "^8.5.1",
"mongoose": "^6.2.0",
"multer": "^1.4.4",
"nodemon": "^2.0.15"
},
"devDependencies": {},
"author": "alkairis",
"license": "ISC"
}
【问题讨论】:
-
要么你没有安装依赖,要么你在
package.json中缺少一个依赖。 -
不,我已经安装了所有依赖项。
-
不,我已经试过了
-
你在使用 Visual Studio Code 吗?
标签: javascript node.js package.json server-side nodemon