create-react-app icon indicating copy to clipboard operation
create-react-app copied to clipboard

My React app not installing

Open MosesJCoker opened this issue 1 year ago • 3 comments

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

MosesJCoker avatar Mar 26 '24 12:03 MosesJCoker

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.

ChrisUser avatar Mar 29 '24 11:03 ChrisUser

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

BraianS avatar Apr 02 '24 14:04 BraianS

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.

AndrewT-Tran avatar Apr 05 '24 22:04 AndrewT-Tran