Skip to content

Commit e986375

Browse files
📝 Installation
1 parent 3c66e81 commit e986375

1 file changed

Lines changed: 21 additions & 13 deletions

File tree

docs/tutorial/installation.md

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
11
# Installation
22

3-
> Tips for installing Electron
4-
5-
To install prebuilt Electron binaries, use [`npm`](https://docs.npmjs.com/).
3+
To install prebuilt Electron binaries, use [`npm`][npm].
64
The preferred method is to install Electron as a development dependency in your
75
app:
86

97
```sh
108
npm install electron --save-dev
119
```
1210

13-
See the
14-
[Electron versioning doc](electron-versioning.md)
15-
for info on how to manage Electron versions in your apps.
11+
See the [Electron versioning doc][versioning] for info on how to
12+
manage Electron versions in your apps.
1613

1714
## Global Installation
1815

@@ -41,11 +38,12 @@ npm install --platform=win32 electron
4138

4239
## Proxies
4340

44-
If you need to use an HTTP proxy you can [set these environment variables](https://github.com/request/request/tree/f0c4ec061141051988d1216c24936ad2e7d5c45d#controlling-proxy-behaviour-using-environment-variables).
41+
If you need to use an HTTP proxy you can [set these environment variables][proxy-env].
4542

4643
## Custom Mirrors and Caches
47-
During installation, the `electron` module will call out to [`electron-download`](https://github.com/electron-userland/electron-download) to download prebuilt
48-
binaries of Electron for your platform. It will do so by contacting GitHub's
44+
During installation, the `electron` module will call out to
45+
[`electron-download`][electron-download] to download prebuilt binaries of
46+
Electron for your platform. It will do so by contacting GitHub's
4947
release download page (`https://github.com/electron/electron/releases/tag/v$VERSION`,
5048
where `$VERSION` is the exact version of Electron).
5149

@@ -111,23 +109,33 @@ network problems. The best resolution is to try switching networks, or
111109
just wait a bit and try installing again.
112110

113111
You can also attempt to download Electron directly from
114-
[electron/electron/releases](https://github.com/electron/electron/releases)
112+
[electron/electron/releases][releases]
115113
if installing via `npm` is failing.
116114

117115
If installation fails with an `EACCESS` error you may need to
118-
[fix your npm permissions](https://docs.npmjs.com/getting-started/fixing-npm-permissions).
116+
[fix your npm permissions][npm-permissions].
119117

120-
If the above error persists, the [unsafe-perm](https://docs.npmjs.com/misc/config#unsafe-perm) flag may need to be set to true:
118+
If the above error persists, the [unsafe-perm][unsafe-perm] flag may need to be
119+
set to true:
121120

122121
```sh
123122
sudo npm install electron --unsafe-perm=true
124123
```
125124

126-
On slower networks, it may be advisable to use the `--verbose` flag in order to show download progress:
125+
On slower networks, it may be advisable to use the `--verbose` flag in order to
126+
show download progress:
127127

128128
```sh
129129
npm install --verbose electron
130130
```
131131

132132
If you need to force a re-download of the asset and the SHASUM file set the
133133
`force_no_cache` environment variable to `true`.
134+
135+
[npm]: https://docs.npmjs.com
136+
[versioning]: ./electron-versioning.md
137+
[releases]: https://github.com/electron/electron/releases
138+
[proxy-env]: https://github.com/request/request/tree/f0c4ec061141051988d1216c24936ad2e7d5c45d#controlling-proxy-behaviour-using-environment-variables
139+
[electron-download]: https://github.com/electron-userland/electron-download
140+
[npm-permissions]: https://docs.npmjs.com/getting-started/fixing-npm-permissions
141+
[unsafe-perm]: https://docs.npmjs.com/misc/config#unsafe-perm

0 commit comments

Comments
 (0)