# Nodemon μ¬μ©νκΈ°
# nodemon λΌμ΄λΈλ¬λ¦¬
μμ μ¬νμ΄ μμ λλ§λ€ serverλ₯Ό κ»λ€ μΌλ μμ μμ΄ μλμ μΌλ‘ serverμ λ°μν΄μ£Όλ λΌμ΄λΈλ¬λ¦¬
npm install -g nodemon
yarn add global nodemon
1
2
2
# nodemon μλ² μ€ννκΈ°
nodemone server.js
1
μ€ν ν μλμ κ°μ΄ λ¨λ©΄ μ±κ³΅μ μΌλ‘ nodemon μ€μΉ λ° μ€νλ κ²μ΄λ€.
> nodemon server.js
[nodemon] 2.0.13
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): *.*
[nodemon] watching extensions: js,mjs,json
[nodemon] starting `node server.js`
listening on 8080
1
2
3
4
5
6
7
2
3
4
5
6
7