2018年8月1日

electron in ubuntu

參考文件:https://blog.csdn.net/weifengdq/article/details/70597829

curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs
 
git clone https://github.com/electron/electron.git
cd electron
# Install as a development dependency
npm install electron --save-dev
 
error
 
vim package.json
"name": "electron" 改为 "name": "electron-test", 存檔
 
# Install as a development dependency
npm install electron --save-dev

# Install the `electron` command globally in your $PATH
sudo npm install electron -g
 
electron版本
electron --version

沒有留言: