質問をすることでしか得られない、回答やアドバイスがある。

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

新規登録して質問してみよう
ただいま回答率
85.48%
React.js

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

Q&A

解決済

1回答

2515閲覧

npm install axios をすることができない

hiei1

総合スコア52

React.js

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

0グッド

0クリップ

投稿2022/06/07 12:10

編集2022/06/07 12:34

npm install axiosをしようとするとエラーが出るので
npm audit fix --forceを打つとこのエラーが出ます。これはどこを修正すればいいでしょうか?

error

1npm WARN using --force Recommended protections disabled. 2npm WARN audit Updating react-scripts to 5.0.1,which is a SemVer major change. 3 4added 527 packages, removed 949 packages, changed 339 packages, and audited 1405 packages in 42s 5 6190 packages are looking for funding 7 run `npm fund` for details 8 9# npm audit report 10 11nth-check <2.0.1 12Severity: high 13Inefficient Regular Expression Complexity in nth-check - https://github.com/advisories/GHSA-rp65-9cf3-cjxr 14fix available via `npm audit fix --force` 15Will install react-scripts@2.1.3, which is a breaking change 16node_modules/svgo/node_modules/nth-check 17 css-select <=3.1.0 18 Depends on vulnerable versions of nth-check 19 node_modules/svgo/node_modules/css-select 20 svgo 1.0.0 - 1.3.2 21 Depends on vulnerable versions of css-select 22 node_modules/svgo 23 @svgr/plugin-svgo <=5.5.0 24 Depends on vulnerable versions of svgo 25 node_modules/@svgr/plugin-svgo 26 @svgr/webpack 4.0.0 - 5.5.0 27 Depends on vulnerable versions of @svgr/plugin-svgo 28 node_modules/@svgr/webpack 29 react-scripts >=2.1.4 30 Depends on vulnerable versions of @svgr/webpack 31 node_modules/react-scripts 32 336 high severity vulnerabilities 34 35To address all issues (including breaking changes), run: 36 npm audit fix --force

package.json

1{ 2 "name": "frontend", 3 "version": "0.1.0", 4 "private": true, 5 "dependencies": { 6 "@testing-library/jest-dom": "^5.16.4", 7 "@testing-library/react": "^13.3.0", 8 "@testing-library/user-event": "^13.5.0", 9 "@types/jest": "^27.5.2", 10 "@types/node": "^16.11.38", 11 "@types/react": "^18.0.12", 12 "@types/react-dom": "^18.0.5", 13 "axios": "^0.27.2", 14 "react": "^18.1.0", 15 "react-dom": "^18.1.0", 16 "react-scripts": "^5.0.1", 17 "typescript": "^4.7.3", 18 "web-vitals": "^2.1.4" 19 }, 20 "scripts": { 21 "start": "react-scripts start", 22 "build": "react-scripts build", 23 "test": "react-scripts test", 24 "eject": "react-scripts eject" 25 }, 26 "eslintConfig": { 27 "extends": [ 28 "react-app", 29 "react-app/jest" 30 ] 31 }, 32 "browserslist": { 33 "production": [ 34 ">0.2%", 35 "not dead", 36 "not op_mini all" 37 ], 38 "development": [ 39 "last 1 chrome version", 40 "last 1 firefox version", 41 "last 1 safari version" 42 ] 43 }, 44 "devDependencies": { 45 "css-select": "^5.1.0" 46 } 47} 48

npm install axiosを打つと出るエラー

up to date, audited 1832 packages in 4s 81 packages are looking for funding run `npm fund` for details 66 vulnerabilities (14 low, 17 moderate, 34 high, 1 critical) To address issues that do not require attention, run: npm audit fix To address all issues (including breaking changes), run: npm audit fix --force Run `npm audit` for details.

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

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

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

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

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

hoshi-takanori

2022/06/07 12:19

何がしたいのかよく分かりませんが、とりあえず package.json の内容と、npm install axios で出たエラーメッセージを貼ると良いかも。
hiei1

2022/06/07 12:32

修正します。
guest

回答1

0

ベストアンサー

npm install axiosを打つと出るエラー

特にエラーではありません。インストールできているものと思われます。

投稿2022/06/07 13:17

maisumakun

総合スコア145184

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

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

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

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

ただいまの回答率
85.48%

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

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

質問する

関連した質問