npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

i-electron

v2.2.7

Published

electron 安装加速工具

Downloads

103

Readme

i-electron

install-electron 功能

  1. electron npm包,安装⚡加速⚡工具
  2. 避免electron-builder打包时,二次下载electron二进制包

使用方法

你可以通过以下命令使用 i-electron 安装指定版本的 Electron:

npx -y i-electron [version]

例如:

npx -y i-electron
npx -y i-electron 36.4.0
npx -y i-electron 37.0.0-beta.3

加速安装,使用国内的 npm 镜像源。例如:

npx -y --registry=https://registry.npmmirror.com/ i-electron
# 指定版本
npx -y --registry=https://registry.npmmirror.com/ i-electron 31.4.0

版本号说明

  • 如果不指定版本号:
    • 若为第一次安装,将自动使用 Electron 的最新版本号。
    • 若非第一次安装,将沿用上次安装的版本号。
  • 你也可以手动指定特定的版本号,例如 36.4.037.0.0-beta.3,以安装对应版本的 Electron。

tips

electron基础模板项目

git clone https://github.com/electron/minimal-repro

国内快线

git clone https://gitee.com/mirrors_electron/minimal-repro.git

加速electron-builder依赖下载

如果你需要使用electron-builder打包你的应用,可能会下载一些依赖文件,如winCodeSign,nsis 默认会从github下载,使用华为/淘宝源可以加速下载

  • [淘宝]https://npmmirror.com/mirrors/electron-builder-binaries/
  • [华为]https://mirrors.huaweicloud.com/electron-builder-binaries/

powershell $env:K="V"

$env:NPM_CONFIG_ELECTRON_BUILDER_BINARIES_MIRROR = "https://npmmirror.com/mirrors/electron-builder-binaries/"

cmd set K=V

set NPM_CONFIG_ELECTRON_BUILDER_BINARIES_MIRROR=https://npmmirror.com/mirrors/electron-builder-binaries/

bash export K=V

export NPM_CONFIG_ELECTRON_BUILDER_BINARIES_MIRROR=https://npmmirror.com/mirrors/electron-builder-binaries/

可用镜像源

以下是一些可用的 npm 镜像源:

  • 淘宝npm镜像:https://registry.npmmirror.com/
  • 腾讯云npm镜像:https://mirrors.cloud.tencent.com/npm/
  • 华为云npm镜像:https://mirrors.huaweicloud.com/repository/npm/
  • 官方npm镜像:https://registry.npmjs.org/
  • yarn:https://registry.yarnpkg.com

其他大概率用不着的

  1. 设置环境变量IELECTRON_DISABLE_OS_TOOLS=true 禁用unzip tar等系统命令解压