Package Managers
Are you using a package manager like
npmoryarnto handle your Font Awesome assets? Here are some handy tips for upgrading your project to Font Awesome Version 6.
Using npm-check-updates
Section titled “Using npm-check-updates”For a nice upgrade experience we recommend using npm-check-updates.
npx npm-check-updates --filter "/@fortawesome.*/" --target greatest --upgradeUsing npm
Section titled “Using npm”If you prefer to use plain vanilla npm, you can run the built in npm update command from the directory where your package.json file lives.
// This updates all packages with pending updatesnpm update
// This is more surgicalnpm update @fortawesome/fontawesome-proFor more information on updating a package using npm check out the official docs.
Using Yarn
Section titled “Using Yarn”Yarn has the yarn upgrade command for updating your packages.
// This updates all packages with pending updatesyarn upgrade
// This is more surgicalyarn upgrade @fortawesome/fontawesome-proCheck out the official Yarn documentation for more information about upgrading your files.
You're all set!
Your project will now load Version 6 and render any existing icons using our newest and freshest icons and options. Are you running into trouble? Check out our troubleshooting guide for answers to common questions about using Font Awesome on the Web.