Javascript 终端上的NestJS CLI项目运行错误

Javascript 终端上的NestJS CLI项目运行错误,javascript,node.js,typescript,nestjs,Javascript,Node.js,Typescript,Nestjs,在my webstorm内置终端上运行命令warn start:dev时出现错误 错误屏幕截图 这是我的package.json文件 { "name": "test-project", "version": "0.0.1", "description": "", "author": "", "license": "MIT", "scripts": { "prebuild": "rimraf dist", "build": "nest build",

在my webstorm内置终端上运行命令
warn start:dev
时出现错误

错误屏幕截图

这是我的
package.json
文件

{
  "name": "test-project",
  "version": "0.0.1",
  "description": "",
  "author": "",
  "license": "MIT",
  "scripts": {
    "prebuild": "rimraf dist",
    "build": "nest build",
    "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"",
    "start": "nest start",
    "start:dev": "nodemon",
    "start:debug": "nodemon --config nodemon-debug.json",
    "start:prod": "node dist/main",
    "lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
    "test": "jest",
    "test:watch": "jest --watch",
    "test:cov": "jest --coverage",
    "test:debug": "node --inspect-brk -r tsconfig-paths/register -r ts-node/register node_modules/.bin/jest --runInBand",
    "test:e2e": "jest --config ./test/jest-e2e.json"
  },
  "dependencies": {
    "@nestjs/common": "^6.10.14",
    "@nestjs/core": "^6.10.14",
    "@nestjs/platform-express": "^6.10.14",
    "reflect-metadata": "^0.1.13",
    "rimraf": "^3.0.0",
    "rxjs": "^6.5.4",
    "uuid": "^7.0.2"
  },
  "devDependencies": {
    "@nestjs/cli": "^6.13.2",
    "@nestjs/schematics": "^6.8.1",
    "@nestjs/testing": "^6.10.14",
    "@types/express": "^4.17.2",
    "@types/jest": "25.1.2",
    "@types/node": "^13.1.6",
    "@types/supertest": "^2.0.8",
    "@typescript-eslint/eslint-plugin": "^2.12.0",
    "@typescript-eslint/parser": "^2.12.0",
    "eslint": "^6.7.2",
    "eslint-config-prettier": "^6.7.0",
    "eslint-plugin-import": "^2.19.1",
    "jest": "^24.9.0",
    "prettier": "^1.18.2",
    "supertest": "^4.0.2",
    "ts-jest": "25.2.0",
    "ts-loader": "^6.2.1",
    "ts-node": "^8.6.0",
    "tsconfig-paths": "^3.9.0",
    "typescript": "^3.7.4"
  },
  "jest": {
    "moduleFileExtensions": [
      "js",
      "json",
      "ts"
    ],
    "rootDir": "src",
    "testRegex": ".spec.ts$",
    "transform": {
      "^.+\\.(t|j)s$": "ts-jest"
    },
    "coverageDirectory": "../coverage",
    "testEnvironment": "node"
  }
}

我正试图解决这个问题,但我想不出代码

当nodemon进程突然结束/关闭终端时发生。通常使用不同的端口号或重新启动系统。通过运行以下命令,可以终止在端口3000上运行的nodemon进程:

kill -9 $(lsof -t -i:3000)

当nodemon进程突然结束/关闭终端时发生。通常使用不同的端口号或重新启动系统。通过运行以下命令,可以终止在端口3000上运行的nodemon进程:

kill -9 $(lsof -t -i:3000)

错误显示端口已在使用中,似乎您正在端口3000上运行另一个应用程序。有几次我必须更改端口及其工作!!很高兴听到它现在对你有效,当你再次遇到这个问题时,我建议你注销/重新启动机器,如果它一直对我有效。我会这样做的!谢谢错误显示端口已在使用中,似乎您正在端口3000上运行另一个应用程序。有几次我不得不更改端口及其工作!!很高兴听到它现在对你有效,当你再次遇到这个问题时,我建议你注销/重新启动机器,如果它一直对我有效。我会这样做的!非常感谢。