Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i am encounting the error while running server.js #8

Open
sanketbisne opened this issue Sep 17, 2019 · 0 comments
Open

i am encounting the error while running server.js #8

sanketbisne opened this issue Sep 17, 2019 · 0 comments

Comments

@sanketbisne
Copy link

Microsoft Windows [Version 10.0.17134.829]
(c) 2018 Microsoft Corporation. All rights reserved.

C:\Users\HP\Desktop\modified Sknchat>npm start

[email protected] start C:\Users\HP\Desktop\modified Sknchat
node server.js

(node:18280) DeprecationWarning: current URL string parser is deprecated, and will be removed in a future version. To use the new parser, pass option { useNewUrlParser: true } to MongoClient.connect.
(node:18280) DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology: true } to the MongoClient constructor.
C:\Users\HP\Desktop\modified Sknchat\node_modules\mongodb\lib\topologies\server.js:240
throw err;
^

MongoNetworkError: failed to connect to server [127.0.0.1:27017] on first connect [MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27017]
at Pool. (C:\Users\HP\Desktop\modified Sknchat\node_modules\mongodb\lib\core\topologies\server.js:431:11)
at Pool.emit (events.js:182:13)
at connect (C:\Users\HP\Desktop\modified Sknchat\node_modules\mongodb\lib\core\connection\pool.js:580:14)
at makeConnection (C:\Users\HP\Desktop\modified Sknchat\node_modules\mongodb\lib\core\connection\connect.js:39:11)
at callback (C:\Users\HP\Desktop\modified Sknchat\node_modules\mongodb\lib\core\connection\connect.js:261:5)
at Socket.err (C:\Users\HP\Desktop\modified Sknchat\node_modules\mongodb\lib\core\connection\connect.js:286:7)
at Object.onceWrapper (events.js:273:13)
at Socket.emit (events.js:182:13)
at emitErrorNT (internal/streams/destroy.js:82:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:50:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: node server.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\HP\AppData\Roaming\npm-cache_logs\2019-09-17T18_05_33_397Z-debug.log

C:\Users\HP\Desktop\modified Sknchat>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant