nodemon은 디렉토리의 파일 변경이 감지될 때 노드 응용 프로그램을 자동으로 재시작하여 node.js 기반 응용 프로그램을 개발하는 데 도움이 되는 도구이다.
파일을 수정할 때마다 자동적으로 서버를 재시작하여 변경사항을 바로바로 적용시켜주기 때문에
ㄹㅇ 정말 매우매우 편리하다
1. 노드몬 설치
npm install -g nodemon
2. package.json - scripts에 nodemon 추가하기
이 명령어를 npm scripts 에 추가해서 자동으로 nodemon이 실행되도록 해주자
"scripts":{
"start" : "nodemon
}
https://www.npmjs.com/package/nodemon
nodemon
Simple monitor script for use during development of a node.js app.. Latest version: 2.0.15, last published: 5 months ago. Start using nodemon in your project by running `npm i nodemon`. There are 3583 other projects in the npm registry using nodemon.
www.npmjs.com
728x90
'🌐 웹개발 > 웹 개발' 카테고리의 다른 글
Web은 무엇인가 | 웹 브라우저에 URL을 입력했을 때 | 🌏웹웹웹🌏 (0) | 2023.04.11 |
---|---|
[Github pages] 404 There isn't a GitHub Pages site here. (0) | 2023.04.05 |
[JS | Javascript] undefined와 null의 차이점 (0) | 2023.04.05 |
[JavaScript | JS] 변수 선언 var, let, const의 차이점 (0) | 2023.02.14 |
[Heroku] Application Error | 헤로쿠에 .env 환경 변수 파일 올리기 (0) | 2023.01.31 |