@kokosikS

Почему при скачивании npm пакетов падает ошибка?

пакеты которые есть
"dependencies": {
    "@apollo/client": "^3.8.1",
    "@haskkor/react-native-recaptchav3": "^1.2.1",
    "@react-native-async-storage/async-storage": "^1.19.3",
    "@react-navigation/native": "^6.1.7",
    "@react-navigation/native-stack": "^6.9.13",
    "@rneui/base": "^4.0.0-rc.7",
    "@rneui/themed": "^4.0.0-rc.8",
    "babel-plugin-module-resolver": "^5.0.0",
    "geolib": "^3.3.4",
    "graphql": "^16.8.0",
    "graphql-ws": "^5.14.2",
    "react": "18.2.0",
    "react-native": "0.72.6",
    "react-native-config": "^1.5.1",
    "react-native-confirmation-code-field": "^7.3.2",
    "react-native-dropdown-select-list": "^2.0.5",
    "react-native-geolocation-service": "^5.3.1",
    "react-native-linear-gradient": "^2.8.2",
    "react-native-maps": "^1.7.1",
    "react-native-onesignal": "^5.0.1",
    "react-native-reanimated": "^3.5.4",
    "react-native-safe-area-context": "^4.7.1",
    "react-native-screens": "^3.24.0",
    "react-native-splash-screen": "^3.3.0",
    "react-native-svg": "^13.14.0",
    "react-native-swiper-flatlist": "^3.2.3",
    "react-native-vector-icons": "^10.0.0",
    "react-native-webview": "^13.6.2"
  },
  "devDependencies": {
    "@babel/core": "^7.20.0",
    "@babel/preset-env": "^7.20.0",
    "@babel/runtime": "^7.20.0",
    "@graphql-codegen/cli": "^5.0.0",
    "@graphql-codegen/typescript": "^4.0.1",
    "@graphql-codegen/typescript-operations": "^4.0.1",
    "@graphql-codegen/typescript-react-apollo": "^3.3.7",
    "@react-native/eslint-config": "^0.72.2",
    "@react-native/metro-config": "^0.72.11",
    "@tsconfig/react-native": "^3.0.0",
    "@types/react": "^18.0.24",
    "@types/react-test-renderer": "^18.0.0",
    "@typescript-eslint/eslint-plugin": "^5.62.0",
    "@typescript-eslint/parser": "^5.62.0",
    "babel-jest": "^29.2.1",
    "babel-plugin-transform-inline-environment-variables": "^0.4.4",
    "eslint": "^8.47.0",
    "eslint-plugin-import": "^2.28.1",
    "eslint-plugin-prettier": "^5.0.0",
    "eslint-plugin-react": "^7.33.2",
    "eslint-plugin-react-hooks": "^4.6.0",
    "eslint-plugin-unused-imports": "^3.0.0",
    "get-graphql-schema": "^2.1.2",
    "jest": "^29.2.1",
    "metro-react-native-babel-preset": "0.76.8",
    "prettier": "^3.1.1",
    "react-native-dotenv": "^3.4.9",
    "react-native-svg-transformer": "^1.1.0",
    "react-test-renderer": "18.2.0",
    "typescript": "4.8.4"
  },


ошибка при их установке

npm WARN ERESOLVE overriding peer dependency
npm WARN While resolving: eslint-plugin-jest@26.9.0
npm WARN Found: @typescript-eslint/eslint-plugin@6.4.0
npm WARN node_modules/@typescript-eslint/eslint-plugin
npm WARN   dev @typescript-eslint/eslint-plugin@"^6.4.0" from the root project
npm WARN   1 more (eslint-plugin-unused-imports)
npm WARN
npm WARN Could not resolve dependency:
npm WARN peerOptional @typescript-eslint/eslint-plugin@"^5.0.0" from eslint-plugin-jest@26.9.0
npm WARN node_modules/eslint-plugin-jest
npm WARN   eslint-plugin-jest@"^26.5.3" from @react-native/eslint-config@0.72.2
npm WARN   node_modules/@react-native/eslint-config
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@"^5.0.0" from eslint-plugin-jest@26.9.0
npm WARN   node_modules/eslint-plugin-jest
npm WARN     eslint-plugin-jest@"^26.5.3" from @react-native/eslint-config@0.72.2
npm WARN     node_modules/@react-native/eslint-config
npm ERR! Cannot read properties of null (reading 'children')
  • Вопрос задан
  • 101 просмотр
Пригласить эксперта
Ответы на вопрос 1
Mike_Ro
@Mike_Ro
Python, JS, WordPress, SEO, Bots, Adversting
Конфликт зависимостей, eslint-plugin-jest@26.9.0 требует @typescript-eslint/eslint-plugin@^5.0.0
Попробуйте --legacy-peer-deps.
Ответ написан
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы