D:\frontend\example>npx create react-app rcsg
npm ERR! could not determine executable to run
You forgot a - in npx create react-app
correct command is :
npx create-react-app <project-folder-name>
correct command to init your project named rcsg:
npx create-react-app rcsg
Related
This is what I'm getting
I am not able to create a project using create-react-app, I get the error "Module not found".
Node version is 17.0.1 and Npm version is 8.1.1
I have reinstalled nodejs 3 times now and have tried different commands like
npm install create-react-app -g
npm cache clean --force
P.S - I have updated the nodejs to 17.0.1 as the picture version shows 16.13.0
You can try with npx create-react-app my-app.
Visit for more details create-react-app
To create a new app, you may choose one of the following methods:
npx
npx create-react-app my-app
npm
npm init react-app my-app
npm init <initializer> is available in npm 6+
Yarn
yarn create react-app my-app
yarn create is available in Yarn 0.25+
So after almost 3-4 hours of trying different things, it has worked.
I dont know which particular thing would have helped it to work but following are the things I tried -
Delete npm and npm cache folder.
Reinstall the nodejs (LTS version).
Create the app in another folder.
Used power shell instead of CMD.
npm fix
npm fix --force
I am trying to create a react app. When I run the npx create-react-app myapp command, this is what happens. I know I can ignore the vulnerabilities but the src and public folders are missing in the app folder.
How can I get the missing folders?
follow this steps
remove create-react-app
npm uninstall -g create-react-app
2)update npm npx using the following commands.
npm update npx
and run the final step
npx create-react-app my-app
Run these commands as follow :
npm i -g npm
npm uninstall -g create-react-app
npm updates npx
npx create-react-app app-name
I have started learning React JS. When I try running the command npx create-react-app myapp, I get this error:
Error: EPERM: operation not permitted, mkdir 'C:\Users\Sameha
command not found: create-react-app
Why is this happening? I have node version 14.17.5 installed.
it is a permission error. All you need to do is open Command Prompt as administrator, and run the same command again. It should hopefully solve your issue.
Try to run it locally with npm instead:
npm install -g create-react-app
Then
npm create-react-app myapp
I think you are uninstall the node and then reinstall the latest version, then it will be worked
npm create-react-app my-app doesn't work any more.
Try npx create-react-app my-app
I am trying to create a react project using following command.
npx create-react-app mywebsite
but getting this error.
command not found: create-react-app
I have tried with sudo command but getting same issue.
Try this
npm install -g create-react-app
and then do npx create-react-app mywebsite
I'm trying to run create-react-app but it seems it's not working the way it's supposed to. I'm trying the following command:
create-react-app my-app
cd my-app
npm start
and getting the following errors while trying to run
if you could help that'llenter image description here be great
The log you've shared says, creation is not success and you're using create-react-app version is very old.
Better you use npx which will ensure that you are using the latest version on the fly without any global installation. Try the below command
$ npx create-react-app festudents
Please remove globally create-react-app try this npm remove -g create-react-app
Then just run those commands
npx create-react-app my-app
cd my-app
npm start
Source: https://reactjs.org/docs/create-a-new-react-app.html
Try removing the creat-react-app boilerplate,
Then create a new with the following command
npx create-react-app my-app 2