목록CODING/Node.js (3)
그날 알았지 이럴 줄
import org.apache.commons.io 가 안돼서 그레이들 빌드 파일 건드렸다가 끝나지 않는 failed에 마주해버렸다. gradle.build 우클릭 -> gradle -> refresh gradle project 실행 시 우선은 build succesful이라고 뜨나.. 로그 전체를 보면 Could not resolve가 우르르 기록됨 + 수많은 라이브러리가 import 되지 않음 (빨간줄 그임) 고로 cmd(명령 프롬프트)로 프로젝트 폴더로 들어가 다시 build 작업을 해본다. 그레이들 빌드 실행 명령어는 > gradlew build 그럼 정상적으로 (?) build failed가 뜬다. 나의 에러상황은 Task :compileJava FAILED excution failed fot ..
우선 npm install 다시한번 해주고 npm start 해본다. 그래도 안되면 ERR! Missing script: "start" script에 start가 없다고 하니 추가해주자 package.json 파일의 scripts 구문에 "start": "node index.js" 추가 굿
ERR_HTTP_HEADERS_SENT('set'); req와 res는 항상 1:1 이어야하는데, response 응답을 두번 보내서 그렇다. 전 코드 router.get('/logout', isLoggedIn, (req, res) => { req.session.destroy(function(err){ if(err) throw err; console.log('세션 삭제, 로그아웃 완료'); res.redirect('/'); }); }); 바뀐 코드 router.get('/logout', isLoggedIn, (req, res) => { req.session.destroy(function(err){ if(err) throw err; console.log('세션 삭제, 로그아웃 완료'); res.redire..