React(Gatsby)にてFontawesomeを利用したいです。
無料版のものは下記で利用できるのですが、
react
1import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; 2// 使用したいアイコンをインポート 3import { faPhoneVolume } from "@fortawesome/free-solid-svg-icons";
利用したいのはproのlightスタイルです
react
1import { faPhoneVolume } from "@fortawesome/pro-light-svg-icons";
とすれば利用できるかなと思ったのですが、
If you're trying to use a package make sure that '@fortawesome/pro-light-svg-icons' is installed. If you're trying to use a local file make sure that the path is correct.
というエラーが出ます。
エラー文通り
npm i --save @fortawesome/pro-light-svg-icons
をターミナルで実行でしたのですが、
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@fortawesome%2fpro-light-svg-icons - Not found npm ERR! 404 npm ERR! 404 '@fortawesome/pro-light-svg-icons@latest' is not in the npm registry.
になります。。。。
どうすればlightスタイルアイコンを使えますでしょうか?
あなたの回答
tips
プレビュー