When I am trying to run the angular app below error is displayed.
An unhandled exception occurred: ENOENT: no such file or directory, lstat 'C:\Users\nitrathod\Desktop\Angular\node_modules' See "C:\Users\NITRAT~1\AppData\Local\Temp\ng-kzNmoN\angular-errors.log" for further details.

Tried npm install to resolve this issue.
after npm install
Project structure for more clarity. Project sturcture
check your angular.json.
I had this problem
"styles": [
"src/styles.css",
"../node_modules/font-awesome/css/font-awesome.css"
],
Should have been
"styles": [
"src/styles.css",
"./node_modules/font-awesome/css/font-awesome.css"
],
This caused it to look for node_modules in the wrong place
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With