mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
docs: add shell language to CLI installation examples
Added `language="shell"` to installation command examples to display
the shell prompt `$` icon consistently across npm, pnpm, yarn, and bun
code blocks.
(cherry picked from commit 27d54654e3)
This commit is contained in:
parent
77ca0d7534
commit
b20bf5dc70
1 changed files with 8 additions and 0 deletions
|
|
@ -40,21 +40,25 @@ To install the Angular CLI, open a terminal window and run the following command
|
|||
<docs-code-multifile>
|
||||
<docs-code
|
||||
header="npm"
|
||||
language="shell"
|
||||
>
|
||||
npm install -g @angular/cli
|
||||
</docs-code>
|
||||
<docs-code
|
||||
header="pnpm"
|
||||
language="shell"
|
||||
>
|
||||
pnpm install -g @angular/cli
|
||||
</docs-code>
|
||||
<docs-code
|
||||
header="yarn"
|
||||
language="shell"
|
||||
>
|
||||
yarn global add @angular/cli
|
||||
</docs-code>
|
||||
<docs-code
|
||||
header="bun"
|
||||
language="shell"
|
||||
>
|
||||
bun install -g @angular/cli
|
||||
</docs-code>
|
||||
|
|
@ -82,21 +86,25 @@ Run with `sudo` to execute the command as the root user and enter your password
|
|||
<docs-code-multifile>
|
||||
<docs-code
|
||||
header="npm"
|
||||
language="shell"
|
||||
>
|
||||
sudo npm install -g @angular/cli
|
||||
</docs-code>
|
||||
<docs-code
|
||||
header="pnpm"
|
||||
language="shell"
|
||||
>
|
||||
sudo pnpm install -g @angular/cli
|
||||
</docs-code>
|
||||
<docs-code
|
||||
header="yarn"
|
||||
language="shell"
|
||||
>
|
||||
sudo yarn global add @angular/cli
|
||||
</docs-code>
|
||||
<docs-code
|
||||
header="bun"
|
||||
language="shell"
|
||||
>
|
||||
sudo bun install -g @angular/cli
|
||||
</docs-code>
|
||||
|
|
|
|||
Loading…
Reference in a new issue