M220JS: Errors at installation

Hello, I’ve got this error message:

C:\Users\rober\Downloads\mflix-js>npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: eslint-config-react-app@2.1.0
npm ERR! Found: babel-eslint@9.0.0
npm ERR! node_modules/babel-eslint
npm ERR! babel-eslint@"^9.0.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer babel-eslint@"^7.2.3" from eslint-config-react-app@2.1.0
npm ERR! node_modules/eslint-config-react-app
npm ERR! eslint-config-react-app@"^2.1.0" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: babel-eslint@7.2.3
npm ERR! node_modules/babel-eslint
npm ERR! peer babel-eslint@"^7.2.3" from eslint-config-react-app@2.1.0
npm ERR! node_modules/eslint-config-react-app
npm ERR! eslint-config-react-app@"^2.1.0" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See C:\Users\rober\AppData\Local\npm-cache\eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\rober\AppData\Local\npm-cache_logs\2022-08-15T07_31_11_648Z-debug-0.log

What can I do?

And if I try ‘npm start’ I’ve got the following:

C:\Users\rober\Downloads\mflix-js>npm start

server@1.0.0 start
nodemon -L ./index.js

[nodemon] 2.0.19
[nodemon] to restart at any time, enter rs
[nodemon] watching path(s): .
[nodemon] watching extensions: js,mjs,json
[nodemon] starting node ./index.js
(node:15812) Warning: Accessing non-existent property ‘count’ of module exports inside circular dependency
(Use node --trace-warnings ... to show where the warning was created)
(node:15812) Warning: Accessing non-existent property ‘findOne’ of module exports inside circular dependency
(node:15812) Warning: Accessing non-existent property ‘remove’ of module exports inside circular dependency
(node:15812) Warning: Accessing non-existent property ‘updateOne’ of module exports inside circular dependency
MongoParseError: URI malformed, cannot be parsed
at parseConnectionString (C:\Users\rober\Downloads\mflix-js\node_modules\mongodb\lib\core\uri_parser.js:502:21)
at connect (C:\Users\rober\Downloads\mflix-js\node_modules\mongodb\lib\operations\connect.js:266:3)
at ConnectOperation.execute (C:\Users\rober\Downloads\mflix-js\node_modules\mongodb\lib\operations\connect.js:191:5)
at C:\Users\rober\Downloads\mflix-js\node_modules\mongodb\lib\operations\execute_operation.js:109:26
at new Promise ()
at executeOperation (C:\Users\rober\Downloads\mflix-js\node_modules\mongodb\lib\operations\execute_operation.js:102:10)
at MongoClient.connect (C:\Users\rober\Downloads\mflix-js\node_modules\mongodb\lib\mongo_client.js:216:10)
at Function.MongoClient.connect (C:\Users\rober\Downloads\mflix-js\node_modules\mongodb\lib\mongo_client.js:379:22)
at Object.connect (C:\Users\rober\Downloads\mflix-js\src/index.js:23:13)
at Module._compile (node:internal/modules/cjs/loader:1120:14)
[nodemon] app crashed - waiting for file changes before starting…

And it doesn’t move

Hi @Robert_Europa,
Can you please take a look at this post?

Hopefully, it will fix the issue you are facing.

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

Thanks and Regards.
Sourabh Bagrecha,
MongoDB

I did it but the same error.


image

Hi @Robert_Europa,
That’s not an error, but a warning.
You can ignore those for now, please go ahead by executing:

npm start

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

Thanks and Regards.
Sourabh Bagrecha,
MongoDB

Finally, after remove the entire directory twice or 3 times and reinstalling once again usint --force, I’ve got the port 5000 listening.

Thank you