Setting up Mflix - [nodemon] app crashed - waiting for the files changes before staring

Hi Everyone!

I’m following the instructions in setting up Mflix and run into the error:

[nodemon] app crashed - waiting for the files changes before staring…

Here’s my dotenv_win file after rename it into .env:

Ticket: Connection

Rename this file to .env after filling in your MFLIX_DB_URI and your SECRET_KEY

Do not surround the URI with quotes

SECRET_KEY=this_is_secret_key
MFLIX_DB_URI=mongodb+srv://lawrence9z:mongodb@mflix.dpp9a.mongodb.net/mflix?retryWrites=true&w=majority
MFLIX_NS=sample_mflix
PORT=5000

I have tried to run npm install at the first start, and also after rename the file dotenv_unix into .env, both ways ended up with the error as below:

I hope every one is doing well with your projects and really appreciate if you can help me out in this case.

Thank you in advanced!!!

Hi @Lawrence_Le, welcome to the community.
Seems like the dependencies for this project are yet to be installed.
Can you please run the following command in the project directory again?

npm install

In case you have any doubts, please feel free to reach out to us.

Thanks and Regards.
Sourabh Bagrecha,
Curriculum Services Engineer

Hi @SourabhBagrecha,

Thank you very much for replying.

I did run npm install from the beginning, and just tried again. Unfortunately it still has the same error.

Is there any other way I can try?

Best Regards,
Lawrence

Hi @SourabhBagrecha,

I solved the problem by your answer in the other topic Chapter0, ticket Connection. Cannot find module ‘@babel/register’

If not, please delete both of them: package-lock.json file & node_modules folder, and then install using the npm install .
If that still doesn’t work try again with

npm install --legacy-peer-deps

Thank you again.

2 Likes