From the course: Learning npm: A Package Manager

Unlock the full course today

Join today to access over 24,400 courses taught by industry experts.

Updating a dependency

Updating a dependency

- [Instructor] Sometimes you will get warnings about the versions of your package being out of date. And also, I'll show you in a second how to do a simple command to understand which packages are outdated. At the same time, I'll show you how to install a specific version of a package. So I simulate having an outdated one. So let's go ahead and first install a specific version. So I'm going to npm install eslint and we're going to install this version 5.2.0. So now that we have this install, you can see that we have this version here. So if we want to know which packages are outdated you do npm outdated, like so. If you want to check the global directories, you do the same with a -g, like we've done before. But in this case, let's just check the ones that we have here. And as you can see, we have this package that is completely out of sync, like this is version 8.32. I have 5.2 and so on so forth. So then what you…

Contents