mongoDB error: Error: failed to connect to [localhost:27017]

后端 未结 6 484
失恋的感觉
失恋的感觉 2021-02-06 12:45

I\'m trying to install habitrpg locally but I keep getting a mongoDB error after typing node src/seed.js:

Error: failed to connect to [localhost:270         


        
6条回答
  •  余生分开走
    2021-02-06 12:53

    I think that you don't have an environmental variable declared. Assuming that your MongoDB installation is C:\ProgramFiles\MongoDB\Server\YOUR_VERSION_NUMBER\, you should just add the bin folder path of that version of MongoDB to your PATH system environment variable.

    Here's a link where you can find the way to do that without complications : http://www.computerhope.com/issues/ch000549.htm

提交回复
热议问题