Merge pull request #7971 from electron/modify-install-docs
make npm install instructions more prominent
This commit is contained in:
commit
68a6b39920
1 changed files with 8 additions and 8 deletions
16
README.md
16
README.md
|
@ -21,20 +21,20 @@ behavior to electron@github.com.
|
||||||
|
|
||||||
## Downloads
|
## Downloads
|
||||||
|
|
||||||
Prebuilt binaries and debug symbols of Electron for Linux, Windows and macOS can
|
To install prebuilt Electron binaries, use
|
||||||
be found on the [releases](https://github.com/electron/electron/releases) page.
|
[`npm`](https://docs.npmjs.com/) (or [`yarn`](https://yarnpkg.com/en/docs/managing-dependencies)):
|
||||||
|
|
||||||
You can also use [`npm`](https://docs.npmjs.com/) to install prebuilt electron
|
|
||||||
binaries:
|
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
# Install the `electron` command globally in your $PATH
|
|
||||||
npm install electron -g
|
|
||||||
|
|
||||||
# Install as a development dependency
|
# Install as a development dependency
|
||||||
npm install electron --save-dev
|
npm install electron --save-dev
|
||||||
|
|
||||||
|
# Install the `electron` command globally in your $PATH
|
||||||
|
npm install electron -g
|
||||||
```
|
```
|
||||||
|
|
||||||
|
See the [releases page](https://github.com/electron/electron/releases) for
|
||||||
|
prebuilt binaries, debug symbols, and more.
|
||||||
|
|
||||||
### Mirrors
|
### Mirrors
|
||||||
|
|
||||||
- [China](https://npm.taobao.org/mirrors/electron)
|
- [China](https://npm.taobao.org/mirrors/electron)
|
||||||
|
|
Loading…
Reference in a new issue