How to Install Node.js on Windows
See JavaScript: Tips and Tricks for similar articles.Node.js is required for using many JavaScript tools and for creating server-side JavaScript applications. Here is how you install Node.js on Windows.
The first thing you should do is check to see if you have a version of Node.js already installed. To do that:
- In the Windows Search Box, type "node.js command".
- If your best match is Node.js command prompt (Desktop app), then you have Node.js installed. Right-click on it and select Run as administrator:
- Update to the latest version using
npm i -g npm
. - You now have the latest version installed. You do not need to continue with these instructions.
- Update to the latest version using
- If you do not get a match for Node.js command prompt (Desktop app), then Node.js is not installed. Continue with these instructions to install it.
- Go to nodejs.org. You'll see download links for Windows.
If you are using Node.js for a Webucator class, you should select the LTS version. The Current version has the latest features, but may be more prone to changes and bugs than the LTS (Long Term Support) version.
- When the file finishes downloading, locate it in Windows Explorer and double-click on it.
- Go through the entire installation process.
- When installation is complete, close the installer.
- In the Windows Search Box, type "node.js command", locate Node.js command prompt (Desktop app), right-click on it and select Run as administrator:
- Enter
node - v
in theCommand Prompt
to verify that Node.js is installed correctly and to see the version of Node.js that was installed
If a version was output, then you're all set.
Related Articles
- Node.js and Node Package Manager (npm)
- How to Install Node.js on a Mac
- How to Run a Node.js Application on Windows
- How to Send and Receive JSON Data to and from the Server
- How to Run a Node.js Application on a Mac
- How to Open Google Chrome's JavaScript Console
- How to Create a Google Map Object with the Maps JavaScript API
- Why JavaScript is called JavaScript
- How to Learn JavaScript on Your Own
- How to Install Node.js on Windows (this article)