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
沒有留言:
張貼留言