I get this error when I run npm start in my project root folder
> 'MoreReactstartersmy-appnode_modules.bin' is not recognized as an internal or external command,
operable program or batch file.
node:internal/modules/cjs/loader:1080
throw err;
> ^
Error: Cannot find module 'D:react-scriptsbinreact-scripts.js'
at Module._resolveFilename (node:internal/modules/cjs/loader:1077:15)
at Module._load (node:internal/modules/cjs/loader:922:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:23:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
> }
Node.js v18.17.1
I am getting an error while trying to launch the application with npm, which is giving me a path to debug but, I am not able to understand the error.
Can anyone help me to fix this issue?
2
Answers
It might be an issue with
node_modules
.Try to delete the
node_modules
folder and install it again usingIf still the issue persists then try to install
react-scripts
module using the following command,You may need to clean the cache. Try running these two commands:
npm cache clean --force
npm install