Skip to content

Commit

Permalink
Merge pull request #2110 from alphagov/bk-update-node-lts
Browse files Browse the repository at this point in the history
Update Node to Active LTS version v16 (Gallium)
  • Loading branch information
domoscargin authored Apr 25, 2022
2 parents 0f3b5ab + c30b9db commit 2756ad7
Show file tree
Hide file tree
Showing 4 changed files with 17,607 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
14.17.6
16.14.2
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,17 @@ To enable this we use [nvm (Node Version Manager)](https://github.com/creationix
npm install
```

### Fixing Node 16+ errors
If you've previously installed `govuk-design-system` locally using Node v14 or earlier, you may see `node-sass`-related errors when updating to Node v16.

To get rid of these errors, delete the `node_modules` folder, then run:

```
nvm use
npm uninstall node-sass -g && npm cache clean -force && npm install node-sass
npm install
```

### Start a local server
This will build sources, serve pages and watch for changes.
```
Expand Down
Loading

0 comments on commit 2756ad7

Please sign in to comment.