해결된 질문
작성
·
596
0
실행시키면 계속 이 에러만 나요ㅠㅠ 어떻게 해결할 수 있을까요..? 감사합니다!
(node:14149) ExperimentalWarning: The fs.promises API is experimental
> boiler-plate@1.0.0 start
> node index.js
Example app listening at http://localhost:5000
{ MongoParseError: Invalid connection string
at parseConnectionString (/Users/Mia/Documents/boiler-plate/node_modules/mongodb/lib/core/uri_parser.js:565:21)
at connect (/Users/Mia/Documents/boiler-plate/node_modules/mongodb/lib/operations/connect.js:282:3)
at cb (/Users/Mia/Documents/boiler-plate/node_modules/mongodb/lib/mongo_client.js:224:5)
at maybePromise (/Users/Mia/Documents/boiler-plate/node_modules/mongodb/lib/utils.js:665:3)
at MongoClient.connect (/Users/Mia/Documents/boiler-plate/node_modules/mongodb/lib/mongo_client.js:220:10)
at Promise (/Users/Mia/Documents/boiler-plate/node_modules/mongoose/lib/connection.js:820:12)
at new Promise (<anonymous>)
at NativeConnection.Connection.openUri (/Users/Mia/Documents/boiler-plate/node_modules/mongoose/lib/connection.js:817:19)
at _mongoose._promiseOrCallback.cb (/Users/Mia/Documents/boiler-plate/node_modules/mongoose/lib/index.js:345:10)
at Promise (/Users/Mia/Documents/boiler-plate/node_modules/mongoose/lib/helpers/promiseOrCallback.js:31:5)
at new Promise (<anonymous>)
at promiseOrCallback (/Users/Mia/Documents/boiler-plate/node_modules/mongoose/lib/helpers/promiseOrCallback.js:30:10)
at Mongoose._promiseOrCallback (/Users/Mia/Documents/boiler-plate/node_modules/mongoose/lib/index.js:1135:10)
at Mongoose.connect (/Users/Mia/Documents/boiler-plate/node_modules/mongoose/lib/index.js:344:20)
at Object.<anonymous> (/Users/Mia/Documents/boiler-plate/index.js:9:10)
at Module._compile (internal/modules/cjs/loader.js:689:30) name: 'MongoParseError' }
답변 2
1
안녕하세요
제가 봤을땐 mongoURI 부분이
이렇게 붙어 있지 않고 띄어쓰기 되어있는데 그 부분 띄어쓰기 없애봐주실래요 ~ ??
0