I am getting “MongoParseError: URI malformed, cannot be parsed” error in my terminal.
At around line 19 of the migration script you will see the following comment:
// ensure you update your host information below! // const host = "mongodb://<your atlas connection uri from your .env file"
It looks like the migration now read the configuration file. That’s different from when I took this course.
I would add some print statement after const host = to make sure the configuration file is read correctly. I suspect that you might be running the migration from the wrong directory. I would try to stay in the top directory to run it, in order to make sure the configuration file is found.