

Your “Hello World” statement will be printed to the terminal. This will launch the Node REPL terminal, then test a console.log statement. If you are able to see the version for node and npm, you are ready to write code on Node.js! nvm install celebrating too much, let’s set our default Node.js version with the command, nvm use 13.12.0. Enter the following command and verify your results. Now we can use NVM to download and install Node.js! Open the Windows Terminal again (you should not need Administrator privileges). If you get a numeric version result, we’re good! Let’s install Node.js next. This allows the terminal to look up environment information and see our newly installed package manager. choco install -y nvmĬlose that terminal window and open a new one (again, as Administrator). To install NVM, enter the following command and verify your results. Type `cmd` in the Windows Start Menu and choose “Run as Administrator”. But NVM will make that an easy problem to solve. If we installed Node.js directly, switching between such projects would present a conundrum. Now we can use our Chocolatey Package Manager to download and install NVM! It is common to work on projects that require different versions of Node.js. In your PowerShell terminal, enter the command: Set-ExecutionPolicy Bypass -Scope Process -Force iex ((New-Object ).DownloadString('')) Enter PowerShell in your Windows Start Menu and choose “Run as Administrator” from the menu.

We will use Windows PowerShell to install Chocolatey. Mitigate risk by downloading known safe packages for your development machine. Chocolatey is as secure as the practices of the user. If you choose that option, you can skip to Install Node.Ĭhocolatey allows us to download and install open source packages from the Web. One I have used with success is NVM-Windows. I no longer recommend Chocolatey due to security and maintenance concerns. Install Chocolatey: the Windows Package Manager When a simple command should produce an output of a certain type, you will see:Ĭommand → output. This tutorial offers a simple way to install the tools you need to start working with Node.js on Windows 10. If you want to learn to write code, setting up a development environment can be a barrier to entry. TUTORIALS Configure a Node.js Development Environment on Windows 10 Overview
