teratail header banner
teratail header banner
質問するログイン新規登録
Material-UI

Material-UIは、Material Designを利用可能なオープンソースのReact向けUIコンポーネントキットです。

React.js

Reactは、アプリケーションのインターフェースを構築するためのオープンソースJavaScriptライブラリです。

Q&A

0回答

951閲覧

Reactにmaterial uiを導入したい

datiko

総合スコア74

Material-UI

Material-UIは、Material Designを利用可能なオープンソースのReact向けUIコンポーネントキットです。

React.js

Reactは、アプリケーションのインターフェースを構築するためのオープンソースJavaScriptライブラリです。

0グッド

0クリップ

投稿2022/05/03 07:00

0

0

npx create-react-app YOUR_PROJECT_NAME
した後、

npm install --save @material-ui/core @material-ui/icons @material-ui/system
でマテリアルUIを導入しようとしたら以下のエラーが出てしまいました。

iterm

1user@yuzanoMacBook-puro chatbot-test % npm install --save @material-ui/icons @material-ui/system 2npm WARN @apideck/better-ajv-errors@0.3.3 requires a peer of ajv@>=8 but none is installed. You must install peer dependencies yourself. 3npm WARN @material-ui/core@4.12.4 requires a peer of react@^16.8.0 || ^17.0.0 but none is installed. You must install peer dependencies yourself. 4npm WARN @material-ui/core@4.12.4 requires a peer of react-dom@^16.8.0 || ^17.0.0 but none is installed. You must install peer dependencies yourself. 5npm WARN @material-ui/styles@4.11.5 requires a peer of react@^16.8.0 || ^17.0.0 but none is installed. You must install peer dependencies yourself. 6npm WARN @material-ui/styles@4.11.5 requires a peer of react-dom@^16.8.0 || ^17.0.0 but none is installed. You must install peer dependencies yourself. 7npm WARN @material-ui/utils@4.11.3 requires a peer of react@^16.8.0 || ^17.0.0 but none is installed. You must install peer dependencies yourself. 8npm WARN @material-ui/utils@4.11.3 requires a peer of react-dom@^16.8.0 || ^17.0.0 but none is installed. You must install peer dependencies yourself. 9npm WARN fork-ts-checker-webpack-plugin@6.5.2 requires a peer of typescript@>= 2.7 but none is installed. You must install peer dependencies yourself. 10npm WARN tsutils@3.21.0 requires a peer of typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta but none is installed. You must install peer dependencies yourself. 11npm WARN @material-ui/system@4.12.2 requires a peer of react@^16.8.0 || ^17.0.0 but none is installed. You must install peer dependencies yourself. 12npm WARN @material-ui/system@4.12.2 requires a peer of react-dom@^16.8.0 || ^17.0.0 but none is installed. You must install peer dependencies yourself. 13npm WARN @material-ui/icons@4.11.3 requires a peer of react@^16.8.0 || ^17.0.0 but none is installed. You must install peer dependencies yourself. 14npm WARN @material-ui/icons@4.11.3 requires a peer of react-dom@^16.8.0 || ^17.0.0 but none is installed. You must install peer dependencies yourself. 15 16+ @material-ui/system@4.12.2 17+ @material-ui/icons@4.11.3 18updated 2 packages and audited 1455 packages in 18.286s 19 20181 packages are looking for funding 21 run `npm fund` for details 22 23found 1 moderate severity vulnerability 24 run `npm audit fix` to fix them, or `npm audit` for details 25user@yuzanoMacBook-puro chatbot-test % npm install --save @material-ui/core @material-ui/icons @material-ui/system 26npm WARN @apideck/better-ajv-errors@0.3.3 requires a peer of ajv@>=8 but none is installed. You must install peer dependencies yourself. 27npm WARN fork-ts-checker-webpack-plugin@6.5.2 requires a peer of typescript@>= 2.7 but none is installed. You must install peer dependencies yourself. 28npm WARN tsutils@3.21.0 requires a peer of typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta but none is installed. You must install peer dependencies yourself. 29npm WARN @material-ui/icons@4.11.3 requires a peer of react@^16.8.0 || ^17.0.0 but none is installed. You must install peer dependencies yourself. 30npm WARN @material-ui/icons@4.11.3 requires a peer of react-dom@^16.8.0 || ^17.0.0 but none is installed. You must install peer dependencies yourself. 31npm WARN @material-ui/system@4.12.2 requires a peer of react@^16.8.0 || ^17.0.0 but none is installed. You must install peer dependencies yourself. 32npm WARN @material-ui/system@4.12.2 requires a peer of react-dom@^16.8.0 || ^17.0.0 but none is installed. You must install peer dependencies yourself. 33npm WARN @material-ui/core@4.12.4 requires a peer of react@^16.8.0 || ^17.0.0 but none is installed. You must install peer dependencies yourself. 34npm WARN @material-ui/core@4.12.4 requires a peer of react-dom@^16.8.0 || ^17.0.0 but none is installed. You must install peer dependencies yourself. 35npm WARN @material-ui/utils@4.11.3 requires a peer of react@^16.8.0 || ^17.0.0 but none is installed. You must install peer dependencies yourself. 36npm WARN @material-ui/utils@4.11.3 requires a peer of react-dom@^16.8.0 || ^17.0.0 but none is installed. You must install peer dependencies yourself. 37npm WARN @material-ui/styles@4.11.5 requires a peer of react@^16.8.0 || ^17.0.0 but none is installed. You must install peer dependencies yourself. 38npm WARN @material-ui/styles@4.11.5 requires a peer of react-dom@^16.8.0 || ^17.0.0 but none is installed. You must install peer dependencies yourself. 39 40+ @material-ui/icons@4.11.3 41+ @material-ui/system@4.12.2 42+ @material-ui/core@4.12.4 43updated 3 packages and audited 1455 packages in 18.914s 44 45179 packages are looking for funding 46 run `npm fund` for details 47 48found 1 moderate severity vulnerability 49 run `npm audit fix` to fix them, or `npm audit` for details

取り急ぎ指示通りにnpm auditを実行してみたところ

Image from Gyazo

上記画像のような結果になり、翻訳ツールで見るとn番目のチェックでの非効率的な正規表現の複雑さと翻訳され、n番目とは、、、?となっています。。。

エラー文を検索してみると脆弱性の問題というふうに出てくるのですが詳しい対処法が出てきませんでした。
どなたかわかる方がいらっしゃいましたらお力を貸していただけないでしょうか。

よろしくお願い致します。

npm 6.14.15
react 18.1.0

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

datiko

2022/05/06 05:24

ありがとうございます。 検討いたします!
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだ回答がついていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.30%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問