Installing Node.js for Windows these days is super simple. Just download the Windows Installer and install it with the default features to a directory of your choice. That’s it.
Note that in most cases it shouldn’t make a difference if you pick the 32 or 64-bit version.
To check if Node.js installed correctly, open a PowerShell window or - if you’re feeling nostalgic - a Command Prompt window and simply type
PS > node >
3+2. That’s right, you could use Node.js as a fancy calculator. Sweet.
PS > node > 3+2 5
To exit the shell at any time press
Open your favorite text editor, create a file
helloworld.js and add the following line of code:
Save the file in the same directory where you installed Node.js and execute it with the
node program through
PS > node helloworld.js Hello World