Skip to content

Commit 2b2cf3e

Browse files
docs(misc) correct and enhance npm install snippets (#3316)
1 parent a498bcc commit 2b2cf3e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/content/guides/getting-started.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ First let's create a directory, initialize npm, [install webpack locally](/guide
3333
mkdir webpack-demo
3434
cd webpack-demo
3535
npm init -y
36-
npm install webpack --save-dev
37-
npm install webpack-cli --save-dev
36+
npm install webpack webpack-cli --save-dev
3837
```
3938

4039
T> Throughout the Guides we will use `diff` blocks to show you what changes we're making to directories, files, and code.

src/content/guides/installation.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ To install the latest release or a specific version, run one of the following co
2727

2828
``` bash
2929
npm install --save-dev webpack
30+
# or specific version
3031
npm install --save-dev webpack@<version>
3132
```
3233

@@ -64,6 +65,7 @@ If you are enthusiastic about using the latest that webpack has to offer, you ca
6465

6566
``` bash
6667
npm install webpack@beta
68+
# or specific tag/branch
6769
npm install webpack/webpack#<tagname/branchname>
6870
```
6971

0 commit comments

Comments
 (0)