mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 23:22:02 +00:00
docs: add instructions for Bun package manager (#22779)
This commit is contained in:
parent
330900bcbe
commit
9d3702c7c2
@ -88,6 +88,10 @@ npm install
|
|||||||
pnpm install
|
pnpm install
|
||||||
```
|
```
|
||||||
|
|
||||||
|
```bash [bun]
|
||||||
|
bun install
|
||||||
|
```
|
||||||
|
|
||||||
::
|
::
|
||||||
|
|
||||||
## Development Server
|
## Development Server
|
||||||
@ -108,6 +112,10 @@ npm run dev -- -o
|
|||||||
pnpm dev -o
|
pnpm dev -o
|
||||||
```
|
```
|
||||||
|
|
||||||
|
```bash [pnpm]
|
||||||
|
bun run dev -o
|
||||||
|
```
|
||||||
|
|
||||||
::
|
::
|
||||||
|
|
||||||
::alert{type=success icon=✨ .font-bold}
|
::alert{type=success icon=✨ .font-bold}
|
||||||
|
@ -7,4 +7,4 @@ head.title: "node_modules/"
|
|||||||
|
|
||||||
# Node modules Directory
|
# Node modules Directory
|
||||||
|
|
||||||
The package manager ([`npm`](https://docs.npmjs.com/cli/v7/commands/npm) or [`yarn`](https://yarnpkg.com/) or [`pnpm`](https://pnpm.io/cli/install)) creates the [`node_modules/` directory](/docs/guide/directory-structure/node_modules) to store the dependencies of your project.
|
The package manager ([`npm`](https://docs.npmjs.com/cli/v7/commands/npm) or [`yarn`](https://yarnpkg.com/) or [`pnpm`](https://pnpm.io/cli/install) or [`bun`](https://bun.sh/package-manager)) creates the [`node_modules/` directory](/docs/guide/directory-structure/node_modules) to store the dependencies of your project.
|
||||||
|
@ -30,7 +30,7 @@ Update `nuxt` dependency inside `package.json`:
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Remove lockfile (`package-lock.json`, `yarn.lock`, or `pnpm-lock.yaml`) and reinstall dependencies.
|
Remove lockfile (`package-lock.json`, `yarn.lock`, `pnpm-lock.yaml`, or `bun.lockb`) and reinstall dependencies.
|
||||||
|
|
||||||
## Opting Out From the Edge Channel
|
## Opting Out From the Edge Channel
|
||||||
|
|
||||||
@ -45,7 +45,7 @@ Update `nuxt` dependency inside `package.json`:
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
Remove lockfile (`package-lock.json`, `yarn.lock`, or `pnpm-lock.yaml`) and reinstall dependencies.
|
Remove lockfile (`package-lock.json`, `yarn.lock`, `pnpm-lock.yaml`, or `bun.lockb`) and reinstall dependencies.
|
||||||
|
|
||||||
## Using Latest `nuxi` CLI From Edge
|
## Using Latest `nuxi` CLI From Edge
|
||||||
|
|
||||||
|
@ -157,7 +157,7 @@ We recommend using [VS Code](https://code.visualstudio.com/) along with the [ESL
|
|||||||
|
|
||||||
#### No Prettier
|
#### No Prettier
|
||||||
|
|
||||||
Since ESLint is already configured to format the code, there is no need to duplicate the functionality with Prettier. To format the code, you can run `yarn lint --fix` or `pnpm lint --fix` or referring the [ESLint section](#use-eslint) for IDE Setup.
|
Since ESLint is already configured to format the code, there is no need to duplicate the functionality with Prettier. To format the code, you can run `yarn lint --fix`, `pnpm lint --fix`, or `bun run lint --fix` or referring the [ESLint section](#use-eslint) for IDE Setup.
|
||||||
|
|
||||||
If you have Prettier installed in your editor, we recommend you disable it when working on the project to avoid conflict.
|
If you have Prettier installed in your editor, we recommend you disable it when working on the project to avoid conflict.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user