Closed RobertSasak closed 5 years ago
Hi @RobertSasak ,
Do you have the same issue with the original Create React App project?
No, I can run $ npx create-react-app test-app
without any problem. Are you by any chance working on Windows?
Yes. I'm working on windows. I think someone else had a similar issue. I think it's the same cause: https://github.com/TarikHuber/react-most-wanted/issues/38
I found the problem. It is related to https://github.com/npm/npm/issues/12371 .
I fixed it by opening node_modules/rmw-react-scripts/bin/react-scripts.js
in VS Code and clicked in the bottom toolbar on CRLF and switch it to LF.
After this change I was able to run yarn start
.
It has something to do with how the first line is ended.
#!/usr/bin/env node
On MacOS return \r is consired as a part of program name "node\r".
I get a following error when running
start
. I found similar issue which is related to UTF encoding. https://github.com/darkguy2008/parallelshell/issues/58App starts when I install
react-scripts
as a global package and run it from console.