Shiluco / shiluco_HP

1 stars 1 forks source link

bug: npm install するとエラーがいっぱい出る #7

Open Tsuyopon-1067 opened 5 months ago

Tsuyopon-1067 commented 5 months ago

以下のエラーが出る. node_modulesフォルダを削除してからnpm iをしても同様.

% npm i
npm warn ERESOLVE overriding peer dependency
npm warn While resolving: eslint-plugin-jest@25.7.0
npm warn Found: @typescript-eslint/eslint-plugin@7.8.0
npm warn node_modules/@typescript-eslint/eslint-plugin
npm warn   dev @typescript-eslint/eslint-plugin@"^7.2.0" from the root project
npm warn
npm warn Could not resolve dependency:
npm warn peerOptional @typescript-eslint/eslint-plugin@"^4.0.0 || ^5.0.0" from eslint-plugin-jest@25.7.0
npm warn node_modules/eslint-plugin-jest
npm warn   eslint-plugin-jest@"^25.3.0" from eslint-config-react-app@7.0.1
npm warn   node_modules/eslint-config-react-app
npm warn
npm warn Conflicting peer dependency: @typescript-eslint/eslint-plugin@5.62.0
npm warn node_modules/@typescript-eslint/eslint-plugin
npm warn   peerOptional @typescript-eslint/eslint-plugin@"^4.0.0 || ^5.0.0" from eslint-plugin-jest@25.7.0
npm warn   node_modules/eslint-plugin-jest
npm warn     eslint-plugin-jest@"^25.3.0" from eslint-config-react-app@7.0.1
npm warn     node_modules/eslint-config-react-app
npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: react-scripts@5.0.1
npm error Found: typescript@5.4.5
npm error node_modules/typescript
npm error   dev typescript@"^5.2.2" from the root project
npm error   peer typescript@">= 2.7" from fork-ts-checker-webpack-plugin@6.5.3
npm error   node_modules/fork-ts-checker-webpack-plugin
npm error     fork-ts-checker-webpack-plugin@"^6.5.0" from react-dev-utils@12.0.1
npm error     node_modules/react-dev-utils
npm error       react-dev-utils@"^12.0.1" from react-scripts@5.0.1
npm error       node_modules/react-scripts
npm error         react-scripts@"^5.0.1" from the root project
npm error   2 more (ts-api-utils, tsutils)
npm error
npm error Could not resolve dependency:
npm error peerOptional typescript@"^3.2.1 || ^4" from react-scripts@5.0.1
npm error node_modules/react-scripts
npm error   react-scripts@"^5.0.1" from the root project
npm error
npm error Conflicting peer dependency: typescript@4.9.5
npm error node_modules/typescript
npm error   peerOptional typescript@"^3.2.1 || ^4" from react-scripts@5.0.1
npm error   node_modules/react-scripts
npm error     react-scripts@"^5.0.1" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error /Users/[user]/.npm/_logs/2024-05-29T07_46_06_869Z-eresolve-report.txt

npm error A complete log of this run can be found in: /Users/[user]/.npm/_logs/2024-05-29T07_46_06_869Z-debug-0.log