mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
docs: remove postinstall lifecycle warning (#50405)
* docs: change postinstall lifecycle to changed from electron v42 Co-authored-by: Anirudh Sevugan <sonicforces207@gmail.com> * docs: remove postinstall lifecycle warning Co-authored-by: Anirudh Sevugan <sonicforces207@gmail.com> --------- Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Anirudh Sevugan <sonicforces207@gmail.com>
This commit is contained in:
@@ -83,17 +83,6 @@ dependency.
|
||||
npm install electron --save-dev
|
||||
```
|
||||
|
||||
:::warning
|
||||
|
||||
In order to correctly install Electron, you need to ensure that its `postinstall` lifecycle
|
||||
script is able to run. This means avoiding the `--ignore-scripts` flag on npm and allowlisting
|
||||
`electron` to run build scripts on other package managers.
|
||||
|
||||
This is likely to change in a future version of Electron. See
|
||||
[electron/rfcs#22](https://github.com/electron/rfcs/pull/22) for more details.
|
||||
|
||||
:::
|
||||
|
||||
Your package.json file should look something like this after initializing your package
|
||||
and installing Electron. You should also now have a `node_modules` folder containing
|
||||
the Electron executable, as well as a `package-lock.json` lockfile that specifies
|
||||
|
||||
Reference in New Issue
Block a user