![]() package name: (mysite)įill it accordingly or just go with default. Create an empty folder called hello, navigate into and open VS Code: mkdir. By the end of this tutorial, your app will open a browser window that displays a web page with information about which Chromium, Node.js, and Electron versions are running. Use `npm install ` afterwards to install a package and save it as a dependency in the package.json file. Lets get started by creating the simplest Node.js application, Hello World. This guide will step you through the process of creating a barebones Hello World app in Electron, similar to electron/electron-quick-start. To open this file in VS code editor type the following command. Step 2: Open the file in your favorite text editor. Open a command prompt and type: mkdir myapp. Follow the given steps to make your node js hello world program: Step 1: Open the command prompt on windows and type the given command to make a javascript file. The most common example Hello World of Node.js is a web server. This will give you the tools needed to run a server on your local machine. ![]() See `npm help init` for definitive documentation on these fields and exactly what they do. Node.js is built on top of the Google Chrome V8 JavaScript engine, and its mainly used. It only covers the most common items, and tries to guess sensible defaults. This is what you might see next: C:\Users\Ijas\Desktop\mySite>npm init This utility will walk you through creating a package.json file. Create a folder somewhere on your PC and open terminal or cmd or whatever and set the directory to that folder.(I am using cmd in Windows10) C:\Users\Ijas\Desktop> mkdir mySite C:\Users\Ijas\Desktop>cd mySite C:\Users\Ijas\Desktop\mySite>Ĭd => change directory.
0 Comments
Leave a Reply. |