From d9f6c1b8385994a00c5e1f4e64e343ad1452d5c6 Mon Sep 17 00:00:00 2001 From: Juan Cruz Viotti Date: Tue, 24 May 2016 10:37:12 -0400 Subject: [PATCH] Add instructions to configure NPM for installation (#429) Signed-off-by: Juan Cruz Viotti --- docs/CONTRIBUTING.md | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/docs/CONTRIBUTING.md b/docs/CONTRIBUTING.md index 88db8553..713b30bc 100644 --- a/docs/CONTRIBUTING.md +++ b/docs/CONTRIBUTING.md @@ -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= +export npm_config_runtime=electron +``` + +In Windows: + +```sh +set npm_config_disturl=https://atom.io/download/atom-shell +set npm_config_target= +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 ```