fix(docs): added missing package manager tabs in docs (#3650)

This commit is contained in:
Abhinandan 2024-09-08 22:38:51 +05:30 committed by GitHub
parent 942cfc3a88
commit cb7d7a27fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 41 additions and 16 deletions

View File

@ -30,11 +30,16 @@ To install the `CLI` globally, execute one of the following commands in your ter
### Without Installation
Alternatively, you can use the `CLI` without a global installation by employing `npx`:
Alternatively, you can use the `CLI` without a global installation by running the following command:
```bash
npx nextui-cli@latest
```
<PackageManagers
commands={{
npm: "npx nextui-cli@latest",
yarn: "yarn dlx nextui-cli@latest",
pnpm: "pnpm dlx nextui-cli@latest",
bun: "bunx nextui-cli@latest",
}}
/>
</Steps>
@ -114,15 +119,25 @@ You will be prompted to configure your project:
Install the dependencies to start the local server:
```codeBlock bash
cd my-nextui-app && npm install
```
<PackageManagers
commands={{
npm: "cd my-nextui-app && npm install",
yarn: "cd my-nextui-app && yarn install",
pnpm: "cd my-nextui-app && pnpm install",
bun: "cd my-nextui-app && bun install",
}}
/>
Start the local server:
```codeBlock bash
npm run dev
```
<PackageManagers
commands={{
npm: "npm run dev",
yarn: "yarn run dev",
pnpm: "pnpm run dev",
bun: "bun run dev",
}}
/>
## add

View File

@ -39,14 +39,24 @@ You will be prompted to configure your project:
```
Install the dependencies to start the local server:
```codeBlock bash
cd my-nextui-app && npm install
```
<PackageManagers
commands={{
npm: "cd my-nextui-app && npm install",
yarn: "cd my-nextui-app && yarn install",
pnpm: "cd my-nextui-app && pnpm install",
bun: "cd my-nextui-app && bun install",
}}
/>
Start the local server:
```codeBlock bash
npm run dev
```
<PackageManagers
commands={{
npm: "npm run dev",
yarn: "yarn run dev",
pnpm: "pnpm run dev",
bun: "bun run dev",
}}
/>
Once your NextUI project is ready to develop, you can add individual components using the CLI. For example, to add a button component: