Search code examples
node.jsreactjswindowsnpmyarnpkg

'C:\Users...' is not recognized as an internal command when starting a project with Yarn


I'm trying to start a project with Yarn using the command yarn create react-app ReportingApp --template typescript however it says that my user is not recognized:

enter image description here

I also tried adding the path in my windows variables (path). However, I still get the error.

I saw this issue in the past and I fixed it by replacing my user name "Gabriel Donada" with the user ID from Windows, but I have not found how to make that again.


Solution

  • Not sure what happened, but I used as workaround start the app using npx create react-app ReportingApp --template typescript