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.
Removing a dependency
From the course: Learning npm: A Package Manager
Removing a dependency
- [Instructor] Now let's go over the basics of removing a package. So it's very simple. To remove a package after you install it is "npm uninstall." And let's say we wanted to remove "eslint." That would be it. If you wanted to remove something globally, you would do "-g." If you want to remove something from the dev dependencies, let's say "eslint" was in the dev dependencies, you would do "-save-dev" like so. So it's basically using uninstall as opposed to install. So let's go ahead and remove "eslint." And as you can see now, it's been removed from our dependencies. And this is how simple it is to remove a package.