


Hence, don't just blindly update your packages without testing the application. The general rule in software development is Better safe than sorry. Important: Installing the latest version of a package puts the safeties provided by semantic versioning aside and can introduce major code changes into your project. This command will output the current installed versions of all packages, the wanted version ( npm update would want to update to this version), and the latest available version.įor example, we have the following package.json (created with npm init -y and version 4.8.1 of lodash installed): To check if any packages in your Node.js project are outdated, run npm outdated in the root folder (where the package.json file is). Update packages to a specific version or update packages to the latest major release.To update a dependency in a Node.js project you have to follow these steps: One of the best books in software development, sold over 200,000 times. The Pragmatic Programmer: journey to mastery. On a regular basis these records need to be updated to pull the latest compatible version. The package-lock.json is locking/pinning a specific version of a package. Keeping dependencies up-to-date is important, to get the latest security fixes, performance improvements, and general bug fixes for the packages installed. If you plan to use the Pro packages, which contain more icons and styles, you'll need to have an active subscription to a Pro Plan and a valid Pro Package Token and then follow the steps below to configure Pro access for your project.This article is based on Node v16.15.1 and NPM 8.11.0. If you're just using the Free package, you can skip this step. Pick the one that suits your project and follow the steps below to get set up.

And there's our Brands icon family on top of that too.Īll the Version 6 goodness but just the Free iconsīasically, the packages contain all the stuff in the Font Awesome for Web download, but bundled as a package. We have a couple of packages available: PackageĪll the Version 6 goodness including all the latest features and Pro icons, spanning 5 styles available in 2 families, Classic and our new Sharp. We’ll cover the basics of choosing the package that best suits your needs, access configuration, tips for which method to use for adding icons, and more!
