how to delete last npm package code example Example 1: uninstall node package npm uninstall <package_name> Example 2: uninstall nodemon globally npm uninstall nodemon