Express Refresh 문제 해결 하기 nodemon

SSAD·2023년 2월 14일
0

BackEnd

목록 보기
10/44
  1. 설치
yarn add nodemon
  1. package.json 수정
{
  "name": "04-01-rest-api-with-express",
  "version": "1.0.0",
  "main": "index.js",
  "license": "MIT",
  "type": "module",
  "scripts": {
    "dev": "nodemon index.js"
  },
  "dependencies": {
    "cors": "^2.8.5",
    "express": "^4.18.2",
    "nodemon": "^2.0.20",
    "swagger-jsdoc": "^6.2.8",
    "swagger-ui-express": "^4.6.0"
  }
}
  1. 실행 : yarn dev
profile
learn !

0개의 댓글