Hello =)
I use *Laragon, node-v22.3.0-win-x64 & mongodb-win32-x86_64-windows-7.0.11 for an application.
I use PHP & SQL too, and sql work too
Node.js works perfectly.
So when i want laucnh mongod.exe i have this error:
{"t":{"$date":"2024-06-13T20:44:36.006+02:00"},"s":"E", "c":"CONTROL", "id":20557, "ctx":"initandlisten","msg":"DBException in initAndListen, terminating","attr":{"error":"NonExistentPath: Data directory M:\\data\\db\\ not found. Create the missing directory or specify another path using (1) the --dbpath command line option, or (2) by adding the 'storage.dbPath' option in the configuration file."}
I understand the error, so i make a shortcut like:
1: M:\Laragon\bin\mongodb\mongodb-win32-x86_64-windows-7.0.11\bin\mongod.exe --config M:\Laragon\bin\mongodb\mongodb-win32-x86_64-windows-7.0.11\mongod.conf
2: M:\Laragon\bin\mongodb\mongodb-win32-x86_64-windows-7.0.11\bin\mongod.exe --config ..\mongod.conf
3: M:\Laragon\bin\mongodb\mongodb-win32-x86_64-windows-7.0.11\bin\mongod.exe --f M:\Laragon\bin\mongodb\mongodb-win32-x86_64-windows-7.0.11\mongod.conf
4: M:\Laragon\bin\mongodb\mongodb-win32-x86_64-windows-7.0.11\bin\mongod.exe --f ..\mongod.conf
But no one works i have the same error.
Maye anyone can help me ?
Regards