Installing packages globally allows you to run and interact with command line tools on your computer. In this video, Alex covers a fun CLI tool called cowsay to demonstrate the process of installing and running a globally installed node module. Then, he discusses the nodemon package and how to run this from the command line.
run right here in the terminal. These packages typically … include code checkers, monitors, file creators, even … tools for interfacing with all sorts of API gateways. … tools for interfacing with all sorts of … API gateways via the command line. … command line interface applications or CLI's for short. … They're even goofy command line interfaces. … Cowsay will literally make a cow say something. … We can look it up on NPM and we see the … instructions for cowsay right here. So notice … in the installation instruction, there's a "-g" flag. … that we can use it from any directory within our terminal. … Now if you're on a PC and you want to … install global packages, you need to be sure to … On a Mac, you might have to do a sudo installation, … so I'm going to do a sudo npm install -g cowsay. … now from any directory on my computer, I can say cowsay … "hello world" and we can see a cow saying hello world. … It also looks like the cowsay CLI … has a command for cowthink. … Another important npm is nodemon. …
- Making HTTP requests
- Building web and file servers
- Installing packages with npm
- Managing and linking global packages
- Working with Express, the web server framework
- Handling POST and DELETE requests
- Creating WebSockets
- Testing and debugging Node.js code
Skill Level Advanced
Node.js: Real-Time Web with Socket.IOwith Emmanuel Henri1h 24m Intermediate
Work with VSCode1m 59s
1. The HTTP Module
3. Web Servers
5. Node.js Testing
6. Automation and Deployment
- 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.