mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-24 19:56:37 +00:00
Add instructions to configure NPM for installation (#429)
Signed-off-by: Juan Cruz Viotti <jviottidc@gmail.com>
This commit is contained in:
parent
f4d9de850c
commit
d9f6c1b838
@ -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
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user