Skip to content
This repository has been archived by the owner on Apr 4, 2022. It is now read-only.

Starter templates that rely on fontawesome produce errors so they can't be tried out... #71

Open
jonathanlal opened this issue Jan 21, 2022 · 1 comment

Comments

@jonathanlal
Copy link

Unable to try out this corporate template and the blog template because of an error installing the fortawesome dependency.

  npx create-strapi-starter my-project next-blog
  npx create-strapi-starter my-project next-corporate

Gives:

Error: Couldn't find package "@fortawesome/free-solid-svg-icons@^5.15.3" required by "@strapi/[email protected]" on the "npm" registry.
error Couldn't find package "@fortawesome/fontawesome-free@^5.15.3" required by "@strapi/[email protected]" on the "npm" registry.
Error: Couldn't find package "@fortawesome/free-brands-svg-icons@^5.15.3" required by "@strapi/[email protected]" on the "npm" registry.
Error: Couldn't find package "@fortawesome/free-brands-svg-icons@^5.15.2" required by "@strapi/[email protected]" on the "npm" registry.
Error: Couldn't find package "@fortawesome/fontawesome-free@^5.15.2" required by "@strapi/[email protected]" on the "npm" registry.
Error: Couldn't find package "@fortawesome/fontawesome-svg-core@^1.2.35" required by "@strapi/[email protected]" on the "npm" registry.
Error: Couldn't find package "@fortawesome/fontawesome-svg-core@^1.2.35" required by "@strapi/[email protected]" on the "npm" registry.
Error: Couldn't find package "@fortawesome/free-solid-svg-icons@^5.15.3" required by "@strapi/[email protected]" on the "npm" registry.
Error: Couldn't find package "@fortawesome/free-solid-svg-icons@^5.15.3" required by "@strapi/[email protected]" on the "npm" registry.
Error: Couldn't find package "@fortawesome/react-fontawesome@^0.1.14" required by "@strapi/[email protected]" on the "npm" registry
Error: Couldn't find package "@fortawesome/react-fontawesome@^0.1.14" required by "@strapi/[email protected]" on the "npm" registry.
Error: Couldn't find package "@fortawesome/free-solid-svg-icons@^5.15.3" required by "@strapi/[email protected]" on the "npm" registry.

The error seems to be because those packages were deprecated:
https://www.npmjs.com/package/@fortawesome/fontawesome-free-brands

https://github.com/FortAwesome/Font-Awesome/blob/master/UPGRADING.md#50x-to-510

@jonathanlal
Copy link
Author

My bad. Apparently if you already used the pro license on your system you will get this error. Solution is to:
npm config delete @fortawesome:registry
strapi/strapi#12179 (comment)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant