mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-13 04:16:48 +00:00
Add instructions for installing node.js via nvm (#1770)
This commit is contained in:
parent
6c5c2f2916
commit
f9f26b79a1
@ -22,15 +22,18 @@ Do not use development mode in production. Home Assistant uses aggressive cachin
|
||||
|
||||
## {% linkable_title Setting up the environment %}
|
||||
|
||||
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:
|
||||
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:
|
||||
|
||||
```yaml
|
||||
http:
|
||||
development: 1
|
||||
```
|
||||
|
||||
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.
|
||||
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:
|
||||
|
||||
```bash
|
||||
$ nvm install node
|
||||
```
|
||||
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:
|
||||
|
||||
```bash
|
||||
|
Loading…
x
Reference in New Issue
Block a user