Cannot Connect to MongDB Atlas using Mongoose

不羁岁月 提交于 2019-12-08 03:02:26

Have you well installed mongoDB in local ?

https://docs.mongodb.com/manual/administration/install-community/

Verify the contents of the system environment variables, from a new console window type the command "echo %ATLAS_URI%", if the URI does not appear it is necessary to add it:

  1. In Search, search for and then select: System (Control Panel).
  2. Click the Advanced system settings link.
  3. Click Environment Variables. In the section System Variables, find the PATH environment variable and select it. Click Edit If the PATH environment variable does not exist, click New.
  4. In the Edit System Variable (or New System Variable) window, specify the value of the PATH environment variable. Click OK Close all remaining windows by clicking OK.

If you already have it added it is necessary to restart the computer and try the "echo %ATLAS_URI%" command.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!