Skip to content

Upgrade Package Managers

Are you using a package manager like npm or yarn to handle your Font Awesome assets? Here are some handy tips for upgrading your project to Font Awesome Version 7.

For a nice upgrade experience we recommend using npm-check-updates.

Terminal window
npx npm-check-updates --filter "/@fortawesome.*/" --target greatest --upgrade
// or this for Kit packages
npx npm-check-updates --filter "/@awesome.me.*/" --target greatest --upgrade

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.

Terminal window
// Use this to update all packages with pending updates (which will include Font Awesome)
npm update
// Or you can just update your Font Awesome packages
// Update a Kit package - be sure to replace [KitID] with your Kit's ID
npm update '@awesome.me/kit-[KitID]'
// Update SVG core + specific styles - edit or add the styles you use in your project
npm update @fortawesome/fontawesome-svg-core
npm update @fortawesome/pro-solid-svg-icons
npm update @fortawesome/sharp-light-svg-icons
npm update @fortawesome/sharp-duotone-solid-svg-icons
...
// Update the Free package
npm update @fortawesome/fontawesome-free
// Update the Pro package
npm update @fortawesome/fontawesome-pro

For more information on updating a package using npm check out the official docs.

Yarn has the yarn up command for updating your packages.

Terminal window
// Use this to update all packages with pending updates (which will include Font Awesome)
yarn up
// Or you can just update your Font Awesome packages
// Update a Kit package - be sure to replace [KitID] with your Kit's ID
yarn up '@awesome.me/kit-[KitID]'
// Update SVG core + specific styles - edit or add the styles you use in your project
yarn up @fortawesome/fontawesome-svg-core
yarn up @fortawesome/pro-solid-svg-icons
yarn up @fortawesome/sharp-light-svg-icons
yarn up @fortawesome/sharp-duotone-solid-svg-icons
...
// Update the Free package
yarn up @fortawesome/fontawesome-free
// Update the Pro package
yarn up @fortawesome/fontawesome-pro

Check out the official Yarn documentation for more information about upgrading your files.


You're all set!

Your project will now load Version 7 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.