Electron environment setup


Node Environment (10.0 or above)

Ii. Create project & Install ELECTRON

cd Desktop
mkdir electron-app
cd electron-app
npm init -y
npm install electron --save-dev
Copy the code

Installing electron is slow, smoking a bag…

If you can’t stand it, you can use YARN or CNPM.

Check whether the installation is successful

npx electron -v
./node_modules/.bin/electron -v
Copy the code

Three, start the electron app

// node_modules/.bin/electronCopy the code

If this picture appears it means you can start the electron journey.

Follow the public account: Page boy Xiao Yang [adhere to the original, willing to share]