From the course: Learning Functional Programming with JavaScript ES6+

Installing Node.js and npm - JavaScript Tutorial

From the course: Learning Functional Programming with JavaScript ES6+

Start my 1-month free trial

Installing Node.js and npm

- [Instructor] Let's install the tools necessary for this course. Node.js will be really important for running your code and installing a few libraries we'll be using to make our programming easy. If you're not already familiar with Node.js, all you need to know for this course is that Node.js is an incredibly popular platform that allows you to run JavaScript code outside of the browser. This is really helpful since it means your JavaScript code doesn't have to be loaded and executed as part of a webpage. In other words, you could write a single JavaScript file and run it from the command line. If you don't already have Node.js installed, you can download it from Node.js's website nodejs.org. We're going to click on this button here and download it and once it downloads we're going to click on it to open it. And this should take you through the steps required for installation. Note that if you're using Windows or a Unix distribution, the steps might be a little different. But Node.js has instructions for all of these as well. And once you have Node.js installed, you'll want to make sure that you have the most recent version of NPM installed. We'll be using a few libraries in this course and NPM is a package manager for Node.js that allows us to easily install them. To install the most recent version of NPM, just open your terminal and type npm install -g npm@latest and you might need to run this with sudo as well. After that, type npm -v and it should show the latest version. If the NPM and Node versions on your computer are higher than mine, don't worry about it. Everything should still run correctly. But I do highly recommend having at least these version numbers here. And that's all there is to it. Node.js and NPM are now installed on your computer.

Contents