In this training video, you will learn how to install Node.js on a Mac. Alex Banks will also teach you how to check to be sure that you pick the appropriate installer, and that you have the current version. Once you have Node.js installed, you'll be able to participate in all of the activities for the course.
- If you have not installed Node.js or you have installed an older version of Node.js awhile back, you will need to go reinstall it. The easiest way to install Node.js is simply to navigate to nodejs.org in the browser and then click on this button right here in the center of the screen to download your package. The Node.js website will sniff out your operating system and pick the correct package for you. So I will download this version of Node.js for OS X. Alternatively, you can also go to the Downloads link found in the main navigation bar on the Node.js website and pick the appropriate installer for your system.
Once you have a package downloaded, you can simply navigate to that file and then go ahead and open it up to run the installer. The installer will open up a wizard which you can follow through. For most people, the defaults for this wizard will be absolutely fine. So we will agree to the license. I just choose the default installation and everything should be okay for me. We can see that it is installed here in my usr/local/bin folder both Node and the Node package manager.
Once you open up your terminal, you can check your Node installation by typing node -v. This will show you your current version of Node.js. So we can see that I just installed the latest version of Node.js 4.2.1.
Alex Banks shows how to install Node.js on a Mac or PC and work with the Node.js core: the global object, event loop, http module, and file system. Then he covers reading and writing data, streaming data, making http requests, and working with the node package manager (npm). In the final chapters, he shows how to start sessions on web servers, communicate with web servers and clients with WebSockets, use the Express framework to develop applications, and test and debug Node.js code. Want to speed up your Node.js workflow? Check out the tutorials on automating tasks with Grunt and npm scripts.
- What is Node.js?
- Installing Node.js
- Understanding the global object and global timing
- Importing the core modules
- Handling events
- Creating child processes
- Reading, writing, and removing files
- Working with file streams
- Making http requests
- Serving files and JSON data
- Installing npm, the node package manager
- Working with Express, the web server framework
- Using WebSockets
- Testing and debugging Node.js code
- Working with Grunt and Browserify
- Automating tasks with npm scripts
Skill Level Intermediate
Q: This course was updated on 09/06/2017. What changed?
A: New videos were added that cover upgrading Node. In addition, the following topic was updated: debugging with npm.
1. What Is Node.js?
2. Installing Node.js
3. Node Core
4. Node Modules
5. The File System
6. The HTTP Module
7. Node Package Manager
Installing npms locally4m 4s
8. Web Servers
Creating a WebSocket server8m 30s
10. Testing and Debugging
11. Automation and Deployment
Next steps2m 4s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.