I have just started learning React and created a first app by using below commands
npm install -g create-react-app
npx create-react-app myapp
after this i moved into my app folder and then used 'npm start' command to start the server but i go this error.
Please help me to resolve this problem and starting the react server.
If you have an &
in your project's path you will run into this issue, at least on Windows it seems like. The part in the path after the &
is interpreted as another command as per the error and everything breaks from there.
Confirming that as soon as it's removed, npm start
works fine.
It's happening most likely because of an & in your folder name which is getting used as the path of your project. So Check the whole path trail of your project and rename any folder with "&" to only text-based names.
The Run - npm start from the console. Hope it will solve your problem. Enjoy coding and changing the world.
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