After following your solution, I was still not happy with the solution. However, when I tried the suggestions provided in the comments, the issue was resolved. 1) Removed the older Node.js version (v18) and installed the latest one (v22). 2) Restart VS code terminal by closing the VS code editor. 3) Deleted the package-lock.json file and the node_modules folder, then ran the "npm install" command again. Now it's working. Thanks once again!
After following your solution, I was still not happy with the solution. However, when I tried the suggestions provided in the comments, the issue was resolved. 1) Removed the older Node.js version (v18) and installed the latest one (v22). 2) Restart VS code terminal by closing the VS code editor. 3) Deleted the package-lock.json file and the node_modules folder, then ran the "npm install" command again. Now it's working. Thanks once again!
After following your solution, I was still not happy with the solution. However, when I tried the suggestions provided in the comments, the issue was resolved.
1) Removed the older Node.js version (v18) and installed the latest one (v22).
2) Restart VS code terminal by closing the VS code editor.
3) Deleted the package-lock.json file and the node_modules folder, then ran the "npm install" command again.
Now it's working. Thanks once again!
@@harsh-raj-6982 will definitely try this out and see if it works, is it a permanent solution? Thanks buddy
@ Yaa, its a permanent solution. Tried the same in multiple Mac and windows PC and it works.
@@harsh-raj-6982 awesome, I will do another video for the permanent solution ✅✅. Thanks for the contribution
But this is a temporary solution…
Yeap, it's still an issue on the mongoose repo. If you use a paid atlas tier then you won't face the error
After following your solution, I was still not happy with the solution. However, when I tried the suggestions provided in the comments, the issue was resolved.
1) Removed the older Node.js version (v18) and installed the latest one (v22).
2) Restart VS code terminal by closing the VS code editor.
3) Deleted the package-lock.json file and the node_modules folder, then ran the "npm install" command again.
Now it's working. Thanks once again!