반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- el1008e
- JUnit
- 스프링부트테스트
- yum install java
- java 버전 변경
- springboot
- parse
- AWS CLI
- error
- log error
- springboottest
- java
- No tests found for given includes
- property or field 'jobparameters' cannot be found on object of type
- maybe not public or not valid?
- LeetCode
- no sources given
- easy
- xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools)
- java 1.8 11
- querydsl no sources given
- OpenFeign
- aws
- java version
- Java 1.8
- java 11
- mac os git error
- java 여러개 버전
- Medium
- springbatch error
Archives
- Today
- Total
쩨이엠 개발 블로그
[ Node ] nodemon 사용하기 본문
728x90
반응형
node 코드가 변경 되었을 때마다 서버 재시작 하기 귀찮을 때
$ node app.ja
대신 쓰는 nodemon을 사용해보겠다
일단 install이 필요하다
$ sudo npm install nodemon -g
/usr/local/bin/nodemon -> /usr/local/lib/node_modules/nodemon/bin/nodemon.js
> nodemon@2.0.4 postinstall /usr/local/lib/node_modules/nodemon
> node bin/postinstall || exit 0
Love nodemon? You can now support the project via the open collective:
> https://opencollective.com/nodemon/donate
+ nodemon@2.0.4
added 121 packages from 58 contributors in 4.771s
-g를 이용해 어떤 패키지에서든 nodemon을 쓸 수 있도록 설정한다
설치가 완료되면 간단하게 version 으로 설치가 잘 되었는지 확인 할 수 있다
$ nodemon -v
2.0.4
nodemon으로 app.js를 띄운 뒤 console.log('start2')를 추가해보면 start2가 추가되어있는 것을 확인 할 수 있다
$ nodemon app.js
[nodemon] 2.0.4
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): *.*
[nodemon] watching extensions: js,mjs,json
[nodemon] starting `node app.js`
start
[nodemon] restarting due to changes...
[nodemon] starting `node app.js`
start2
start
728x90
반응형
'개발 > ETC' 카테고리의 다른 글
[ h2 ] Error executing DDL ; Table already exists; (0) | 2020.09.28 |
---|---|
[ h2 ] Error Could not find or load main class org.h2.tools.Console (0) | 2020.09.25 |
[ postman error ] Error: tunneling socket could not be established, statusCode=400 (0) | 2020.07.30 |
[ linux ] gradle 수동 설치 (0) | 2020.07.21 |
[ linux ] Library not loaded: @executable_path/../.Python (0) | 2020.07.21 |
Comments