Ubuntu 20.04 安装 electron
2023-09-14 08:59:35 时间
官方安装:
https://github.com/electron/electron/blob/master/docs/tutorial/installation.md
https://www.electronjs.org/docs/tutorial/installation
npm install -g cnpm --registry=https://registry.npm.taobao.org sudo cnpm install electron -g sudo npm install electron -g --verbose --unsafe-perm=true
注意:由于网络,使用npm 安装 electron 可能会卡在github下载 过程。
# 墙内的话安装过程中会下载失败,需要首先设置electron的源为淘宝源即可 npm config set ELECTRON_MIRROR http://npm.taobao.org/mirrors/electron/ # 全局安装 需要的话追加上 --registry='http://registry.npm.taobao.org' 使用淘宝npm源安装 sudo npm install electron -g --allow-root -unsafe-perm=true # Windows使用下面语句 64位32位机器都是--win32 npm install electron -g --platform=win32 # 验证安装 electron -v
安装cnpm :
#cnpm安装 npm install -g cnpm --registry=https://registry.npm.taobao.org # 配置cnpm 命令 sudo gedit ~/.bashrc export PATH=$PATH:/home/karl/.npm-global/bin # 使修改对当前用户生效 source ~/.bashrc #使用cnpm进行安装,使用方法和npm相同 cnpm install -g electron
x-special/nautilus-clipboardcopyfile:///home/karl/Desktop/DeepinScreenshot_gedit_20200816115319.png
相关文章
- win2008安装mysql8.0「建议收藏」
- ubuntu怎么安装vim编辑器_vim配置大全
- Ubuntu安装nginx_服务器安装Ubuntu
- ubuntu命令行安装deb_ubuntu命令行安装deb软件
- centos7上安装kafka教程「建议收藏」
- 基于ubuntu系统的k8s集群安装
- Adobe Premiere pro 2023软件安装教程-PR软件全版本下载地址
- Ubuntu下如何安装ngnix服务器
- Ubuntu 14.04 LTS 安装Docker详解程序员
- Ubuntu 安装 Froxlor 服务器管理面板
- Ubuntu、Linuxmint 及衍生版本安装 Kernel 4.10.1
- 安装Linux虚拟机:指导安装过程(虚拟机linux安装目录)
- 安装Mysql数据库主机上安装:一步一步指南(mysql数据库主机)
- Ubuntu系统如何重启MySQL服务(ubuntu重启mysql)
- Ubuntu系统下安装MySQL数据库(ubuntu下安装mysql)
- 在树莓派上安装 Ubuntu MATE
- 「Ubuntu上安装Redis:步骤指南」(ubuntu安装redis)
- Linux安装mysql——源码安装
- 轻松安装MySQLWin平台快速实现一键安装(mysql一键安装win)
- opensips源代码安装与配置的技巧方法