facebook / create-react-app

Set up a modern web app by running one command.
https://create-react-app.dev
MIT License
102.58k stars 26.8k forks source link

My React app not installing #13551

Open MosesJCoker opened 6 months ago

MosesJCoker commented 6 months ago

PS C:\Users\moses\files> npx create-react-app --help Usage: create-react-app [options]

Options: -V, --version output the version number --verbose print additional logs --info print environment debug info --scripts-version use a non-standard version of react-scripts --template specify a template for the created project --use-pnp -h, --help output usage information Only is required.

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
ChrisUser commented 6 months ago

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.

BraianS commented 6 months ago

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

AndrewT-Tran commented 5 months ago

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

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.