Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Start a free Courses trial
to watch this video
Over time newer versions of packages are released, or we may find a new, better package to replace existing packages in a project. In these situations we need ways to update and remove packages we no longer need. We can do both of these things with a few new NPM commands.
npm Command Line Usage
-
See list of commands
npm
-
Uninstalling packages
- Uninstall a local dependency:
npm uninstall <package name>
- e.g.
npm uninstall express
- e.g.
- Uninstall a global dependency:
npm uninstall <package name> -g
- e.g.
npm uninstall http-server -g
- e.g.
- Uninstall a local dependency:
Further Reading
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up