mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 07:32:01 +00:00
docs(install): add 3rd tab for using pnpm
(#3559)
This commit is contained in:
parent
230c8cb491
commit
717c5b185a
@ -18,10 +18,22 @@ You can start playing with Nuxt 3 in your browser using our online sandboxes:
|
||||
|
||||
Open a terminal, or from [Visual Studio Code](https://code.visualstudio.com/), open an [integrated terminal](https://code.visualstudio.com/docs/editor/integrated-terminal) and use the following command to create a new starter project:
|
||||
|
||||
```bash
|
||||
::code-group
|
||||
|
||||
```bash [npx]
|
||||
npx nuxi init nuxt3-app
|
||||
```
|
||||
|
||||
```bash [yarn2]
|
||||
yarn dlx nuxi init nuxt3-app
|
||||
```
|
||||
|
||||
```bash [pnpm]
|
||||
pnpm dlx nuxi init nuxt3-app
|
||||
```
|
||||
|
||||
::
|
||||
|
||||
Open `nuxt3-app` folder in visual studio code:
|
||||
|
||||
```bash
|
||||
@ -32,14 +44,18 @@ Install the dependencies:
|
||||
|
||||
::code-group
|
||||
|
||||
```bash [Yarn]
|
||||
```bash [yarn]
|
||||
yarn install
|
||||
```
|
||||
|
||||
```bash [NPM]
|
||||
```bash [npm]
|
||||
npm install
|
||||
```
|
||||
|
||||
```bash [pnpm]
|
||||
pnpm install --shamefully-hoist
|
||||
```
|
||||
|
||||
::
|
||||
|
||||
## Development server
|
||||
@ -48,14 +64,18 @@ Now you'll be able to use `yarn dev` to start your nuxt app in development mode:
|
||||
|
||||
::code-group
|
||||
|
||||
```bash [Yarn]
|
||||
```bash [yarn]
|
||||
yarn dev -o
|
||||
```
|
||||
|
||||
```bash [NPM]
|
||||
```bash [npm]
|
||||
npm run dev -- -o
|
||||
```
|
||||
|
||||
```bash [pnpm]
|
||||
pnpm run dev -- -o
|
||||
```
|
||||
|
||||
::
|
||||
|
||||
::alert{type=success icon=✨ .font-bold}
|
||||
|
Loading…
Reference in New Issue
Block a user