From 376d93c59a8df00c2f3eaa871feaf99c04b53b72 Mon Sep 17 00:00:00 2001 From: Phawin Khongkhasawan Date: Thu, 15 Dec 2016 07:38:42 +0700 Subject: [PATCH 1/2] change npm to yarn command --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e9f8c1b6074..836866d96c7 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ npm install -g create-react-app create-react-app my-app cd my-app/ -npm start +yarn start ``` @@ -70,7 +70,7 @@ my-app/ No configuration or complicated folder structures, just the files you need to build your app.
Once the installation is done, you can run some commands inside the project folder: -### `npm start` +### `yarn start` Runs the app in development mode.
Open [http://localhost:3000](http://localhost:3000) to view it in the browser. @@ -80,14 +80,14 @@ You will see the build errors and lint warnings in the console. Build errors -### `npm test` +### `yarn test` Runs the test watcher in an interactive mode. By default, runs tests related to files changes since the last commit. [Read more about testing.](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#running-tests) -### `npm run build` +### `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. From c10e198ca0c76763b82307d348da5f51f699239e Mon Sep 17 00:00:00 2001 From: Dan Abramov Date: Sun, 12 Feb 2017 01:40:53 +0000 Subject: [PATCH 2/2] Keep npm primary option --- README.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 836866d96c7..ad48670eba1 100644 --- a/README.md +++ b/README.md @@ -12,8 +12,7 @@ npm install -g create-react-app create-react-app my-app cd my-app/ -yarn start - +npm start ``` Then open [http://localhost:3000/](http://localhost:3000/) to see your app.
@@ -70,7 +69,7 @@ my-app/ No configuration or complicated folder structures, just the files you need to build your app.
Once the installation is done, you can run some commands inside the project folder: -### `yarn start` +### `npm start` or `yarn start` Runs the app in development mode.
Open [http://localhost:3000](http://localhost:3000) to view it in the browser. @@ -80,14 +79,14 @@ You will see the build errors and lint warnings in the console. Build errors -### `yarn test` +### `npm test` or `yarn test` Runs the test watcher in an interactive mode. By default, runs tests related to files changes since the last commit. [Read more about testing.](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#running-tests) -### `yarn build` +### `npm run build` or `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.