diff --git a/source/developers/frontend.markdown b/source/developers/frontend.markdown index 663dbb6e4bc..a30c3178196 100644 --- a/source/developers/frontend.markdown +++ b/source/developers/frontend.markdown @@ -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