I am trying to set up react app using create-react-app command on windows pc. I already used it on my mac computer, and it works well. But I encounter a problem. Here my ste
This command requires the Expo-CLI. If you want to save time I recommend to you the Node.js command prompt and it will add the necessary dependencies automatically.
This is the issue is mainly caused by two reasons:
Add C:\Users\ugur\AppData\Roaming\npm to Windows PATH variable and upgrade npm version to 5.5.1
User following command
npx create-react-app my-app
This is a windows variable path problem, i have faced the same problem recently, the following are possible root cause of the problem , installing node via nvm(node version manager) so to solve the issue in this case you after running npm install -g create-react-app
got to the location in my case C:\Users\pc\AppData\Roaming\npm
in the copy create-react-app to C:\Users\pc\AppData\Roaming\nvm\v12.18.3
and also move the folder in node_module folder called create-react-app to the specific version you are using under nvm , after that you should be able to use create-react-app without and issue. i hope this will help someone
I also get same problem but I resolve it by following steps
Thanks
I solved the problem by adding C:\Users\ugur\AppData\Roaming\npm
to windows PATH variable.