목록오류 (6)
taenyLog

https://www.mongodb.com/community/forums/t/option-usecreateindex-is-not-supported/123048 Option usecreateindex is not supported I am trying to connect mongoDB to my web app but it is saying that usercreateindex is not supported please help me with this This is the code from my index.js file const express = require('express'); const app = express(); const mongoose = require('mongoos www.mongodb.c..

localhost 에서 연결을 거부했다는 메세지가 계속 떴는데 알고보니 index.js에서 코드 삭제하다가 app.set("views", path.join(__dirname, "views")); 이부분의 코드까지 삭제해서 였음 ㅠ 포트도 연결 잘 되고 몽고도 잘 됐는데 ... 잘 확인하자 ++) 포트 해결하니까 다른 에러가떴음. SyntaxError: Missing catch or finally after try in C:\Users\User\project2\Mongoose_Express\views\products\ind ex.ejs while compiling ejs index.ejs에 문제가 있다고 해서 봤는데 아무리봐도 못찾겠는 것이다 .. 알고보니 { 가 빠졌었음 ...

$ node index.js APP IS LISTENING ON PORT ! OH NO MONGO CONNECTION ERROR!!!! MongooseServerSelectionError: connect ECONNREFUSED ::1:27017 at _handleConnectionErrors (C:\Users\User\project2\Mongoose_Express\node_mod ules\mongoose\lib\connection.js:792:11) at NativeConnection.openUri (C:\Users\User\project2\Mongoose_Express\node_mo dules\mongoose\lib\connection.js:767:11) at runNextTicks (node:inte..

최신버전의 Node.js 사용하는 경우 JS파일에서 몽구스 모듈을 가져오고 강의 코드를 실행할때 .load index.js 명령 대신 node -i -e "$(< index.js)" 명령사용하자. 윈도우라면 깃배쉬 이용 .

mongod가 실행중이어야함. 파워셸을 켜서 PS C:\Users\User> mongod 실행시켰더니 mongoose 연결됨