質問編集履歴

1

npm install axiosを打つと出るエラーとpackage.jsonの追加

2022/06/07 12:34

投稿

hiei1
hiei1

スコア52

test CHANGED
File without changes
test CHANGED
@@ -38,3 +38,70 @@
38
38
  To address all issues (including breaking changes), run:
39
39
  npm audit fix --force
40
40
  ```
41
+ ```package.json
42
+ {
43
+ "name": "frontend",
44
+ "version": "0.1.0",
45
+ "private": true,
46
+ "dependencies": {
47
+ "@testing-library/jest-dom": "^5.16.4",
48
+ "@testing-library/react": "^13.3.0",
49
+ "@testing-library/user-event": "^13.5.0",
50
+ "@types/jest": "^27.5.2",
51
+ "@types/node": "^16.11.38",
52
+ "@types/react": "^18.0.12",
53
+ "@types/react-dom": "^18.0.5",
54
+ "axios": "^0.27.2",
55
+ "react": "^18.1.0",
56
+ "react-dom": "^18.1.0",
57
+ "react-scripts": "^5.0.1",
58
+ "typescript": "^4.7.3",
59
+ "web-vitals": "^2.1.4"
60
+ },
61
+ "scripts": {
62
+ "start": "react-scripts start",
63
+ "build": "react-scripts build",
64
+ "test": "react-scripts test",
65
+ "eject": "react-scripts eject"
66
+ },
67
+ "eslintConfig": {
68
+ "extends": [
69
+ "react-app",
70
+ "react-app/jest"
71
+ ]
72
+ },
73
+ "browserslist": {
74
+ "production": [
75
+ ">0.2%",
76
+ "not dead",
77
+ "not op_mini all"
78
+ ],
79
+ "development": [
80
+ "last 1 chrome version",
81
+ "last 1 firefox version",
82
+ "last 1 safari version"
83
+ ]
84
+ },
85
+ "devDependencies": {
86
+ "css-select": "^5.1.0"
87
+ }
88
+ }
89
+
90
+ ```
91
+ npm install axiosを打つと出るエラー
92
+ ```
93
+ up to date, audited 1832 packages in 4s
94
+
95
+ 81 packages are looking for funding
96
+ run `npm fund` for details
97
+
98
+ 66 vulnerabilities (14 low, 17 moderate, 34 high, 1 critical)
99
+
100
+ To address issues that do not require attention, run:
101
+ npm audit fix
102
+
103
+ To address all issues (including breaking changes), run:
104
+ npm audit fix --force
105
+
106
+ Run `npm audit` for details.
107
+ ```