I’m in the process of trying to get set up for the Open Source projects. I’ve forked and cloned the FreeCodeCamp GitHub repository and have all the dependencies installed, including MongoDB and Gulp.
However, when I run “npm run only-once”, I get this error message:
Connection fails: MongoError: failed to connect to server [localhost:27017] on first connect [Mongo
Error: connect ECONNREFUSED 127.0.0.1:27017]
C:\Users\myname\Documents\fcc-nonprofit\freeCodeCamp\node_modules\rx\dist\rx.js:77
throw e;
^
MongoError: failed to connect to server [localhost:27017] on first connect [MongoError: connect ECO
NNREFUSED 127.0.0.1:27017]
at Pool.<anonymous> (C:\Users\myname\Documents\fcc-nonprofit\freeCodeCamp\node_modules\mongodb-
core\lib\topologies\server.js:336:35)
at emitOne (events.js:96:13)
at Pool.emit (events.js:188:7)
at Connection.<anonymous> (C:\Users\myname\Documents\fcc-nonprofit\freeCodeCamp\node_modules\mo
ngodb-core\lib\connection\pool.js:280:12)
at Connection.g (events.js:291:16)
at emitTwo (events.js:106:13)
at Connection.emit (events.js:191:7)
at Socket.<anonymous> (C:\Users\myname\Documents\fcc-nonprofit\freeCodeCamp\node_modules\mongod
b-core\lib\connection\connection.js:187:49)
at Socket.g (events.js:291:16)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at emitErrorNT (net.js:1276:8)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickCallback (internal/process/next_tick.js:98:9)
From previous event:
at createNodeObservable (C:\Users\myname\Documents\fcc-nonprofit\freeCodeCamp\node_modules\rx\d
ist\rx.async.js:313:11)
at C:\Users\myname\Documents\fcc-nonprofit\freeCodeCamp\node_modules\rx\dist\rx.async.js:357:12
at Object.<anonymous> (C:\Users\myname\Documents\fcc-nonprofit\freeCodeCamp\seed\index.js:30:3)
at run (bootstrap_node.js:394:7)
at startup (bootstrap_node.js:149:9)
at bootstrap_node.js:509:3
Any help would be appreciated.