recommend fixing permissions over using sudo
This commit is contained in:
parent
1e4232eb3a
commit
3a1d6e7a42
1 changed files with 2 additions and 5 deletions
|
@ -59,11 +59,8 @@ You can also attempt to download Electron directly from
|
||||||
[electron/electron/releases](https://github.com/electron/electron/releases)
|
[electron/electron/releases](https://github.com/electron/electron/releases)
|
||||||
if installing via `npm` is failing.
|
if installing via `npm` is failing.
|
||||||
|
|
||||||
If installation fails with an `EACCESS` error you may have to run it again with `sudo`:
|
If installation fails with an `EACCESS` error you may need to
|
||||||
|
[fix your npm permissions](https://docs.npmjs.com/getting-started/fixing-npm-permissions).
|
||||||
```sh
|
|
||||||
sudo npm install electron
|
|
||||||
```
|
|
||||||
|
|
||||||
If the above error persists, the [unsafe-perm](https://docs.npmjs.com/misc/config#unsafe-perm) flag may need to be set to true:
|
If the above error persists, the [unsafe-perm](https://docs.npmjs.com/misc/config#unsafe-perm) flag may need to be set to true:
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue