Unverified Commit 5bda90f8 authored by Rich Paret's avatar Rich Paret Committed by GitHub

Include yarn instructions (#16565)

* Include yarn instructions

Yarn seems like it's encouraged elsewhere (such as in create-next-app docs), so adding this to clarify it's supported here.

* Added to a similar case
Co-authored-by: 's avatarLuis Alvarez D <luis@vercel.com>
parent 48b3f8e8
......@@ -23,7 +23,7 @@ Next.js will automatically configure this file with default values. Providing yo
> Next.js uses Babel to handle TypeScript, which has some [caveats](https://babeljs.io/docs/en/babel-plugin-transform-typescript#caveats), and some [compiler options are handled differently](https://babeljs.io/docs/en/babel-plugin-transform-typescript#typescript-compiler-options).
Then, run `next` (normally `npm run dev`) and Next.js will guide you through the installation of the required packages to finish the setup:
Then, run `next` (normally `npm run dev` or `yarn dev`) and Next.js will guide you through the installation of the required packages to finish the setup:
```bash
npm run dev
......
......@@ -37,6 +37,8 @@ Install `next`, `react` and `react-dom` in your project:
```bash
npm install next react react-dom
# or
yarn add next react react-dom
```
Open `package.json` and add the following `scripts`:
......@@ -71,7 +73,7 @@ function HomePage() {
export default HomePage
```
To start developing your application run `npm run dev`. This starts the development server on `http://localhost:3000`.
To start developing your application run `npm run dev` or `yarn dev`. This starts the development server on `http://localhost:3000`.
Visit `http://localhost:3000` to view your application.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment