Skip to content

Commit a95c910

Browse files
Clarify node package installation for Hugo guide (#1000)
1 parent 5fd3de1 commit a95c910

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

docs/guides/hugo.md

+11-3
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,21 @@ This tells Hugo to write a `hugo_stats.json` file to the project root as part of
5353

5454
## Node Packages
5555

56-
Run this to install the necessary packages:
56+
If the `package.json` file at the project root doesn't exist yet (which tracks all your node dependancies), run this command from your project root directory to create it:
5757

5858
```
59-
npm install postcss postcss-cli @fullhuman/postcss-purgecss
59+
npm init
6060
```
6161

62-
If the `package.json` file at the project root doesn't exist yet, this will create it.
62+
You can enter as much or little information as you want. When the file is created, you can continue to install the packages.
63+
64+
Run this from your project root to install the necessary packages:
65+
66+
```
67+
npm install postcss postcss-cli @fullhuman/postcss-purgecss --save
68+
```
69+
70+
The packages will install into a folder called `node_modules` and also be added to your `package.json` file.
6371

6472
If it's not already there, add `node_modules/` to your `.gitignore` file.
6573

0 commit comments

Comments
 (0)