java多线程    Java入门    vsftp    ftp    linux配置    centos    FRP教程    HBase    Html5缓存    webp    zabbix    分布式    neo4j图数据库    

mac电脑下安装electron 失败改用cnpm

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.


This entry was posted in MAC, WEB前端 and tagged , . Bookmark the permalink.
月小升QQ 2651044202, 技术交流QQ群 178491360
首发地址:月小升博客https://java-er.com/blog/mac-install-electron-cnpm/
无特殊说明,文章均为月小升原创,欢迎转载,转载请注明本文地址,谢谢
您的评论是我写作的动力.

Leave a Reply