# new-cra

> New create-react-app

Latest version **1.3.1** (published 2024-07-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install new-cra
pnpm add new-cra
yarn add new-cra
bun add new-cra
```

Provides the command `new-cra`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.3.1 |
| Published | 2024-07-23 |
| First published | 2023-10-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 141.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Sean Bradley |
| Maintainers | seanwasere |
| Keywords | create-react-app |

## Links

- npm: https://www.npmjs.com/package/new-cra
- Repository: https://github.com/Sean-Bradley/new-cra
- Homepage: https://github.com/Sean-Bradley/new-cra#readme
- Issues: https://github.com/Sean-Bradley/new-cra/issues
- npm.io page: https://npm.io/package/new-cra

## Recent versions

- 1.3.1 (latest) — 2024-07-23
- 1.3.0 — 2023-11-29
- 1.2.2 — 2023-11-04
- 1.2.1 — 2023-11-04
- 1.2.0 — 2023-10-28
- 1.1.0 — 2023-10-28
- 1.0.4 — 2023-10-28
- 1.0.3 — 2023-10-27
- 1.0.2 — 2023-10-27
- 1.0.1 — 2023-10-27
- 1.0.0 — 2023-10-27

## README

# New-CRA

New `create-react-app`

If you want to create a new app named `my-app` then use the command below.

```bash
npx new-cra my-app
```

After the installation has finished

```bash
cd my-app
npm start
```

Visit http://127.0.0.1:3000

You can use a different name other than `my-app` if you wish. Just use that other name in place of `my-app` in the above commands.

E.g.,

```bash
npx new-cra super-amazing-react-website
cd super-amazing-react-website
npm start
```

## Updating `new-cra`

`new-cra` is occasionally updated. So, to ensure that you are using the latest version of `new-cra`, run,

```bash
npx new-cra@latest
```

You could also update, and create at the same time, just to save time.

```bash
npx new-cra@latest my-app
```

## Typescript

You can also create a TypeScript React project by adding the `-ts` flag.

```bash
npx new-cra@latest my-app -ts
```

## Trouble shooting

### Error : `ENOENT: no such file or directory, lstat`

When running `npx` commands, you may get an error stating that it cannot find `lstat`.

Open a command/bash/powershell prompt and run

```bash
npm install -g npm
```

## About

New-CRA (New Create-React-APP) will build a basic React template/starter/boilerplate for you.

It uses [R3F-Pack](https://github.com/Sean-Bradley/R3F-Pack) under the hood to build your production and development code.

As long as you have [Node](https://nodejs.org/en/download) installed on your computer, you should then be able to just open a command prompt and type,

```bash
npx new-cra my-app
```

And it will create a new basic React template/starter/boilerplate that you can now start developing your new application from.

Happy Hacking!

Sean

---
_Source: https://npm.io/package/new-cra · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
