当我输入npm start
bash 以在本地运行我的应用程序时,我得到以下结果:
监听http://localhost:7200错误连接到 mongo { MongoNetworkError: failed to connect to server [localhost:27017] on first connect [MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27017] at Pool。(C:\Users\Lope\Desktop\trainingCampus\week6\BERcycle\node_modules\mongodb-core\lib\topologies\server.js:431:11) at Pool.emit (events.js:198:13) at connect ( C:\Users\Lope\Desktop\trainingCampus\week6\BERcycle\node_modules\mongodb-core\lib\connection\pool.js:557:14) at makeConnection (C:\Users\Lope\Desktop\trainingCampus\week6\BERcycle \node_modules\mongodb-core\lib\connection\connect.js:39:11) 在回调 (C:\Users\Lope\Desktop\trainingCampus\week6\BERcycle\node_modules\mongodb-core\lib\connection\connect.js :261:5) 在 Socket.err (C:\Users\Lope\Desktop\trainingCampus\week6\BERcycle\node_modules\mongodb-core\lib\connection\connect.js:
我该如何解决这个问题?
www说
慕无忌1623718
相关分类