@hyrious/install-electron
v0.1.0
Published
Install electron from local cache
Downloads
2
Readme
@hyrious/install-electron
Requires Node.js ≥ 20.1.0 to use fs.readdir({ recursive: true })
.
Usage
Install electron from the cache, or fallback to the latest
npx @hyrious/install-electron
Install electron within a version range, prefer from cache
npx @hyrious/install-electron ^30
[!NOTE] If the range is a tag, like
latest
,30-x-y
. They are pointing to some specific version, which often changes and this package can't help. You should not use them to install packages. However, ranges like30.x
are fine.
Options
> npx @hyrious/install-electron --dry-run
30.0.9, not cached
> npx @hyrious/install-electron --dry-run --json
{ "version": "30.0.9", "cached": false }
How It Works
@electron/get
downloads electron to a known place.
@hyrious/install-electron
examines this place to find a proper version that you have cached.
License
MIT @ hyrious