**[SOLVED]** Error after npm start: "[nodemon] app crashed - waiting for file changes before starting..."

Hello! the following error persists even after trying all the solutions that are mentioned here:

> server@1.0.0 start C:\Users\Karthik kedam\M001\m220\mflix-js
> nodemon -L ./index.js

[nodemon] 1.17.5
[nodemon] to restart at any time, enter `rs`
[nodemon] watching: *.*
[nodemon] starting `node ./index.js`
MongoParseError: URI malformed, cannot be parsed
at parseConnectionString (C:\Users\Karthik kedam\M001\m220\mflix-js\node_modules\mongodb-core\lib\uri_parser.js:211:21)
at connect (C:\Users\Karthik kedam\M001\m220\mflix-js\node_modules\mongodb\lib\operations\mongo_client_ops.js:180:3)
at connectOp (C:\Users\Karthik kedam\M001\m220\mflix-js\node_modules\mongodb\lib\operations\mongo_client_ops.js:284:3)
at C:\Users\Karthik kedam\M001\m220\mflix-js\node_modules\mongodb\lib\utils.js:437:24
at new Promise (<anonymous>)
at executeOperation (C:\Users\Karthik kedam\M001\m220\mflix-js\node_modules\mongodb\lib\utils.js:432:10)
at MongoClient.connect (C:\Users\Karthik kedam\M001\m220\mflix-js\node_modules\mongodb\lib\mongo_client.js:168:10)
at Function.MongoClient.connect (C:\Users\Karthik kedam\M001\m220\mflix-js\node_modules\mongodb\lib\mongo_client.js:372:22)
at Object.<anonymous> (C:/Users/Karthik kedam/M001/m220/mflix-js/src/index.js:23:13)
at Module._compile (internal/modules/cjs/loader.js:799:30)
[nodemon] app crashed - waiting for file changes before starting...

my .env content


node: 11.12.0

Also tried:
restarting PC
delete and reinstall npm install

I was able to connect to atlas cluster via Mongo Shell

found the Problem

delete the file name “dotenv_win”
delete those words and the file will only be ".env "
It doesn’t have any name it is just .env
Put Nothing before the .env just leave it blank


That was akward to be honest! thanks…

1 Like