I am trying to launch a React project for the first time, but I am running into an error I don’t understand.
I made a new React project with create-react-app testreact
. That’s seems to work fine.
However, when I try to launch it with npm start
, I get the following error:
'JavaScript\testreact\testreact\node_modules\.bin\' is not recognized as an internal or external command,
operable program or batch file.
internal/modules/cjs/loader.js:883
throw err;
^
Error: Cannot find module 'C:\Users\Stijn Klijn\Desktop\react-scripts\bin\react-scripts.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
at Function.Module._load (internal/modules/cjs/loader.js:725:27)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
at internal/main/run_main_module.js:17:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Does anyone know what this means? And why is it trying to access a folder on my desktop? (which doesn’t exist). I have the latest versions of node and npm!
Thanks in advance!