mac电脑下安装electron 失败
# 克隆示例项目的仓库
$ git clone https://github.com/electron/electron-quick-start
# 进入这个仓库
$ cd electron-quick-start
# 安装依赖并运行
$ npm install && npm start
cnmp install 的时候出错
Client network socket disconnected before secure TLS connection was established
安装cnpm
sudo npm install -g cnpm --registry=https://registry.npm.taobao.org
cd /www/electron-quick-start
执行:
cnmp install
出现
✔ All packages installed (87 packages installed from npm registry, used 11s(network 3s), speed 514.65kB/s, json 82(264.91kB), tarball 1.33MB)
npm start
出现成功界面
Hello World!
We are using Node.js 14.16.0, Chromium 89.0.4389.90, and Electron 12.0.2.