diff --git a/README.md b/README.md index 91283e853e4..b167cecd753 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ If you have questions or need help, please ask in [GitHub Discussions](https://g ```sh npx create-react-app my-app cd my-app -npm start +npm start or npm run start ``` If you've previously installed `create-react-app` globally via `npm install -g create-react-app`, we recommend you uninstall the package using `npm uninstall -g create-react-app` or `yarn global remove create-react-app` to ensure that npx always uses the latest version. @@ -62,7 +62,7 @@ _`npm init ` is available in npm 6+_ ### Yarn ```sh -yarn create react-app my-app +npx yarn create react-app my-app ``` _[`yarn create `](https://yarnpkg.com/lang/en/docs/cli/create/) is available in Yarn 0.25+_ @@ -100,7 +100,7 @@ cd my-app Inside the newly created project, you can run some built-in commands: -### `npm start` or `yarn start` +### `npm start` or `npx yarn start` Runs the app in development mode.
Open [http://localhost:3000](http://localhost:3000) to view it in the browser. @@ -112,14 +112,14 @@ You will see the build errors and lint warnings in the console. Build errors

-### `npm test` or `yarn test` +### `npm test` or `npx yarn test` Runs the test watcher in an interactive mode.
By default, runs tests related to files changed since the last commit. [Read more about testing.](https://facebook.github.io/create-react-app/docs/running-tests) -### `npm run build` or `yarn build` +### `npm run build` or `npx yarn build` Builds the app for production to the `build` folder.
It correctly bundles React in production mode and optimizes the build for the best performance.