

If for some reason you don't want the latest version, perhaps because it may introduce breaking changes to your code, you can alternatively specify a specific version. You can do this in yarn by using the yarn upgrade command: yarn upgrade express Update a Specific Package to Specific Version This command takes a package name as an argument and updates it to the latest version.įor example, here is how to update just express: npm update express To update a specific Node package, you can use the npm update command. Sometimes, you need to update a specific Node package, for example if it recently fixed a bug that you need.


In this post, we'll learn how to use NPM to update a specific Node package. Updating a Specific Package to Latest Stable.Update a Specific Package to Specific Version.
