Difference between revisions of "User:Saul/electron"

From Organic Design wiki
(Install)
m (Electron CLI)
Line 4: Line 4:
 
== Electron CLI ==
 
== Electron CLI ==
 
<source lang="bash">
 
<source lang="bash">
sudo npm install -g electron # install electron globally.
+
sudo npm i -g electron # install electron globally.
 
</source>
 
</source>
 +
If you get an error about not being able to create a folder, you can force it with
 +
<source lang="bash">
 +
sudo npm i -g electron --unsafe-perm=true --allow-root
 +
</source>
 +
 
== Create Vue Project ==
 
== Create Vue Project ==
 
<source lang="bash">
 
<source lang="bash">

Revision as of 22:05, 11 July 2018

This page is for my notes on using electron with vue.

Install

Electron CLI

sudo npm i -g electron # install electron globally.

If you get an error about not being able to create a folder, you can force it with

sudo npm i -g electron --unsafe-perm=true --allow-root

Create Vue Project

vue init webpack <PROJECT NAME> # create the project using the vue's cli.
cd <PROJECT NAME>
npm i