strapi-starter-next-corporate icon indicating copy to clipboard operation
strapi-starter-next-corporate copied to clipboard

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

Open jonathanlal opened this issue 2 years ago • 1 comments

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 avatar Jan 21 '22 15:01 jonathanlal

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 https://github.com/strapi/strapi/issues/12179#issuecomment-1010779472

jonathanlal avatar Jan 22 '22 20:01 jonathanlal