Skip to content

Commit f9f26b7

Browse files
emlovefabaff
authored andcommitted
Add instructions for installing node.js via nvm (home-assistant#1770)
1 parent 6c5c2f2 commit f9f26b7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

source/developers/frontend.markdown

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,18 @@ Do not use development mode in production. Home Assistant uses aggressive cachin
2222

2323
## {% linkable_title Setting up the environment %}
2424

25-
Home Assistant will by default serve the compiled version of the frontend. To enable development mode for Home Assistant, update your `configuration.yaml` to have these lines:
25+
Home Assistant will by default serve the compiled version of the frontend. As everything is compiled into the file `frontend.html` you do not want to work with the compiled version but with the separate files during development. To enable development mode for Home Assistant, update your `configuration.yaml` to have these lines:
2626

2727
```yaml
2828
http:
2929
development: 1
3030
```
3131
32-
As everything is compiled into the file `frontend.html` you do not want to work with the compiled version but with the separate files during development.
32+
Node.js is required to setup the frontend development environment. The preferred method of installing node.js is [nvm](https://github.com/creationix/nvm). Install nvm using the instructions in the [README](https://github.com/creationix/nvm#install-script), and install node.js by running the following command:
3333
34+
```bash
35+
$ nvm install node
36+
```
3437
Next step is to get the frontend code. When you clone the Home Assistant repository, the frontend repository is not cloned by default. You can setup the frontend development environment by running:
3538

3639
```bash

0 commit comments

Comments
 (0)