From the course: Learn JavaScript: Write Modern Code with JavaScript ESNext
Unlock this course with a free trial
Join today to access over 25,000 courses taught by industry experts.
Install Node.js and NPM - JavaScript Tutorial
From the course: Learn JavaScript: Write Modern Code with JavaScript ESNext
Install Node.js and NPM
- Now we're going to move on to writing and running the same basic program we just created for the browser, except, this time, it'll run on Node.js. But before we actually run code using Node.js, we have to install it. If you don't already have Node.js installed, you can download the installer from Node.js's website, nodejs.org. On the website, you'll most likely see two different possible versions that you can install on your computer, and you can choose whichever one you want. Both of them should work fine for our needs. So once you've downloaded the installer, just double-click it, and it should take you through all the steps required for installation. And if you're using Windows or a Unix distribution, such as Ubuntu, the steps might be a little different here since I'm using a Mac, but Node.js's website has instructions for all of these. So once you've completed the installation process, you'll want to make sure that you have the most recent version of npm installed. Fortunately…
Contents
-
-
-
-
-
-
-
-
-
(Locked)
Learning objectives1m 55s
-
(Locked)
Learn about writing and running JavaScript programs1m 44s
-
(Locked)
Write a JavaScript program for the browser12m 4s
-
(Locked)
Move JavaScript to an external script1m 20s
-
(Locked)
Install Node.js and NPM1m 58s
-
(Locked)
Write a Node script5m 57s
-
(Locked)
Use Babel to transpile code3m 2s
-
(Locked)
-
-
-
-
-