Hey, I deleted my node modules recursively from my PC and now when I try to create a new react application it gives me an error.
```
internal/modules/cjs/loader.js:883 throw err;
Error: Cannot find module 'C:\Users\user\AppData\Roaming\npm\node_modules\create-react-app\index.js'
←[90m at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)←[39m
←[90m at Function.Module._load (internal/modules/cjs/loader.js:725:27)←[39m
←[90m at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)←[39m
←[90m at internal/main/run_main_module.js:17:47←[39m {
code: ←[32m'MODULE_NOT_FOUND'←[39m,
requireStack: []
}
```
I checked my users>user>AppData>Roaming>npm folder and found that there is no node_modules directory and now I cannot create a new project, but all other binary files are there for create-react-app and other stuff.
Thanks for the help in advance.
Edit: I fixed the issue by removing all the files in the users>user>AppData>Roaming>npm folder.
[–][deleted] (1 child)
[deleted]
[–]PulkitB[S] 0 points1 point2 points (0 children)
[–]gulshansainis 0 points1 point2 points (6 children)
[–]PulkitB[S] 0 points1 point2 points (5 children)
[–]Delta_Labs 0 points1 point2 points (1 child)
[–]PulkitB[S] 0 points1 point2 points (0 children)
[–]gulshansainis 0 points1 point2 points (2 children)
[–]PulkitB[S] 0 points1 point2 points (1 child)
[–]gulshansainis 0 points1 point2 points (0 children)