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.
回答1件