My React app not installing
PS C:\Users\moses\files> npx create-react-app --help
Usage: create-react-app
Options:
-V, --version output the version number
--verbose print additional logs
--info print environment debug info
--scripts-version
A custom --scripts-version can be one of:
- a specific npm version: 0.8.2
- a specific npm tag: @next
- a custom fork published on npm: my-react-scripts
- a local path relative to the current working directory: file:../my-react-scripts
- a .tgz archive: https://mysite.com/my-react-scripts-0.8.2.tgz
- a .tar.gz archive: https://mysite.com/my-react-scripts-0.8.2.tar.gz
It is not needed unless you specifically want to use a fork.
A custom --template can be one of:
- a custom template published on npm: cra-template-typescript
- a local path relative to the current working directory: file:../my-custom-template
- a .tgz archive: https://mysite.com/my-custom-template-0.8.2.tgz
- a .tar.gz archive: https://mysite.com/my-custom-template-0.8.2.tar.gz
If you have any problems, do not hesitate to file an issue:
https://github.com/facebook/create-react-app/issues/new
Hi, @MosesJCoker! Can you provide us with more info? For example: could you paste the full error log so we can try to identify the context and the first error trigger?
What were you expecting to find with that command? Here you can find docs on how to use create-react-app.
Hello, @MosesJCoker
Run this command for create a new project npx create-react-app new-project
After the project is created open the folder and use this command to run the project npm run start
Hello, @MosesJCoker
Run this command for create a new project
npx create-react-app new-projectAfter the project is created open the folder and use this command to run the projectnpm run start
Adding to OP, you can run npx create-react-app new-project && cd new-project && npm start to accomplish everything above
This command will create a new React project called “new-project”, navigate into the project directory, and then start the development server.