发表于 2021-04-11 11:32:57 by 月小升
mac电脑下安装electron 失败
# 克隆示例项目的仓库
$ git clone https://github.com/electron/electron-quick-start
# 进入这个仓库
$ cd electron-quick-start
# 安装依赖并运行
$ npm install && npm start |
# 克隆示例项目的仓库
$ 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 |
Client network socket disconnected before secure TLS connection was established
安装cnpm
sudo npm install -g cnpm --registry=https://registry.npm.taobao.org |
sudo npm install -g cnpm --registry=https://registry.npm.taobao.org
cd /www/electron-quick-start
执行:
出现
✔ All packages installed (87 packages installed from npm registry, used 11s(network 3s), speed 514.65kB/s, json 82(264.91kB), tarball 1.33MB) |
✔ All packages installed (87 packages installed from npm registry, used 11s(network 3s), speed 514.65kB/s, json 82(264.91kB), tarball 1.33MB)
出现成功界面
Hello World!
We are using Node.js 14.16.0, Chromium 89.0.4389.90, and Electron 12.0.2.
This entry was posted in
MAC,
WEB前端 and tagged
Electron,
桌面开发. Bookmark the
permalink.
月小升QQ 2651044202, 技术交流QQ群 178491360
首发地址:
月小升博客 –
https://java-er.com/blog/mac-install-electron-cnpm/
无特殊说明,文章均为月小升原创,欢迎转载,转载请注明本文地址,谢谢
您的评论是我写作的动力.