unpub --database mongodb://localhost:27017/dart_pub does'nt work
tbm98 opened this issue · 9 comments
I've run unpub --database mongodb://localhost:27017/dart_pub
but got a error
Unhandled exception:
MongoDB ConnectionException: Could not connect to localhost:27017
- SocketException: OS Error: Connection refused, errno = 61, address = localhost, port = 50298
#0 _ConnectionManager.open (package:mongo_dart/src/network/connection_manager.dart:93:9)
<asynchronous suspension>
#1 Db.open (package:mongo_dart/src/database/db.dart:442:7)
<asynchronous suspension>
#2 main (file:///Users/minhtran/.pub-cache/hosted/pub.dartlang.org/unpub-2.0.0/bin/unpub.dart:27:3)
<asynchronous suspension>
I'm missing MongoDB. my bad.
I've run
unpub --database mongodb://localhost:27017/dart_pub
but got a errorUnhandled exception: MongoDB ConnectionException: Could not connect to localhost:27017 - SocketException: OS Error: Connection refused, errno = 61, address = localhost, port = 50298 #0 _ConnectionManager.open (package:mongo_dart/src/network/connection_manager.dart:93:9) <asynchronous suspension> #1 Db.open (package:mongo_dart/src/database/db.dart:442:7) <asynchronous suspension> #2 main (file:///Users/minhtran/.pub-cache/hosted/pub.dartlang.org/unpub-2.0.0/bin/unpub.dart:27:3) <asynchronous suspension>
hello. me too, How did you solve this problem?
I don't directly solved this problem. But let try install mongodb and start it first @zeqinjie
@tbm98 yes, i had install mongodb, and success start .but in my macbook is work, but other macbook it was fail
@zeqinjie is other install mongodb ?. This package required local machine have mongodb
@zeqinjie check your mongodb connection https://www.google.com/search?q=test+connection+mongodb&oq=test+connection+mo&aqs=chrome.1.69i57j0i19l2j0i19i22i30l6.11723j1j4&client=ms-android-samsung-ss&sourceid=chrome-mobile&ie=UTF-8
@tbm98 OK~ Let me see, thx