Cannot launch React project

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.
  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 {
  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!

hey there!
Check this out it may help:

The Do’s and Don’ts

Do format your code before posting.

  • Do make sure you post your question in the right category.
  • Do make sure you put the instructions, error and link to the exercise you are stuck on in your post.
  • Do make sure you put the exercise number in the post title.
  • Do ask for help if you need it!

✘ Don’t ask for help on an exercise without posting code.

  • Don’t post your question more than once - a moderator will move it if needed, so you don’t need to repost.
  • Don’t start debates
  • Don’t advertise. Not for services, nor other groups or communities.
  • Don’t post external links non-code related
  • Don’t post full working code without explanation.
  • Don’t give out personal details.
  • Don’t use bad language - Keep it PG here, please.
  • Don’t ‘revive’ topics that are old.

Please don’t repost the your problem multiple times. (Create-react-app not working)

That fixed it. Thanks!

1 Like