docs: remove postinstall lifecycle warning (#50359)

* docs: change postinstall lifecycle to changed from electron v42

* docs: remove postinstall lifecycle warning
This commit is contained in:
Anirudh Sevugan
2026-03-20 16:37:53 -05:00
committed by GitHub
parent 7f21d31498
commit 4e6324e00b

View File

@@ -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