diff --git a/docs/basic-features/typescript.md b/docs/basic-features/typescript.md index 385f1df2458f0..0e8cbfa668c9b 100644 --- a/docs/basic-features/typescript.md +++ b/docs/basic-features/typescript.md @@ -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 diff --git a/docs/getting-started.md b/docs/getting-started.md index a34798c13491b..6de8da2f92a16 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -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.