Add instructions to configure NPM for installation (#429)

Signed-off-by: Juan Cruz Viotti <jviottidc@gmail.com>
This commit is contained in:
Juan Cruz Viotti 2016-05-24 10:37:12 -04:00
parent f4d9de850c
commit d9f6c1b838

View File

@ -21,10 +21,30 @@ git clone https://github.com/resin-io/etcher
cd etcher
```
- Configure NPM.
In UNIX based operating systems:
```sh
export npm_config_disturl=https://atom.io/download/atom-shell
export npm_config_target=<ELECTRON_VERSION>
export npm_config_runtime=electron
```
In Windows:
```sh
set npm_config_disturl=https://atom.io/download/atom-shell
set npm_config_target=<ELECTRON_VERSION>
set npm_config_runtime=electron
```
You can find the appropriate electron version in the `devDependencies['electron-prebuilt']` field in `package.json`.
- Install dependencies.
```sh
npm install
npm install --build-from-source
bower install
```