Windows Tutorial
Node.js
- Visit Node.js official page.
- Tap Node.js Recommended version.
- Double-click the setup file.
- Tap Install and then follow the command.
- Finally tap finish.
- Now you can see Node.js command on your Window.
Test it
Check out whether Node and npm are installed by running simple commands to know about their versions. Use command prompt
First test node by
$ node -v
Test NPM by
$ npm -v
ElectronJS
Run the following commands to install electron globally.
$ mkdir electron-app $ cd electron-app
This command is specially used to create an individual file for electron js.
Note: electron-app is my file name.
$ npm init -y
This command for creating package.json
$ npm install electron -g $ npm install
This command is for installing npm.
$ npm install electron -save
This command is used to install it as a development dependency in your apps.
This is the final command for install electron js.
$ electron
Now your electron js will be created.
If you want to install and runElectron API Demos,
Download and Install Git on your System.
On your command panel, run the following codes.
$ git clone https://github.com/electron/electron-api-demos $ cd electron-api-demos $ npm install $ npm start
That’s all.
Hope those command will be useful to you. if any doubts regarding this tutorial share with us through command.