Doesn't work with NPM
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 45/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- javascript, react-native
- Ambito
- build-system, tooling
Direzione di ricerca
Start by reproducing the reported npm install and npm run lint failures in the linked awesome-library reproduction, then inspect the generated package's dependency setup from create-react-native-library version 0.56.0. Done means a newly generated library installs successfully and lint runs without manually installing Prettier or the two missing ESLint plugins.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Description
I created a new JS library (I've pick the last option, since I don't need to access native API). And after npm install got this error:
$ npm install
npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: [email protected]
npm error Found: [email protected]
npm error node_modules/prettier
npm error dev prettier@"^2.8.8" from the root project
npm error
npm error Could not resolve dependency:
npm error peer prettier@">=3.0.0" from [email protected]
npm error node_modules/eslint-plugin-prettier
npm error dev eslint-plugin-prettier@"^5.5.4" 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 /home/kuba/.npm/_logs/2025-12-25T18_24_12_883Z-eresolve-report.txt
npm error A complete log of this run can be found in: /home/kuba/.npm/_logs/2025-12-25T18_24_12_883Z-debug-0.log
You need to run:
npm install -D prettier@latest
npm install
When you run npm run lint, you have two missign dependenices:
- eslint-plugin-ft-flow
- eslint-plugin-react-native
that you need to install.
I'm using npx create-react-native-library@latest version 0.56.0.
Packages
- create-react-native-library
- react-native-builder-bob
Selected options
N/A
Link to repro
https://github.com/jcubic/awesome-library
Environment
N/A
- Lingua principale
- JavaScript
- Stelle
- 3.2k
- Fork
- 227
- Merge medio
- 16m
- PR unite (30g)
- 1
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di callstack/react-native-builder-bob
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 42/100
callstack/react-native-builder-bob#901 · 1 commento ·
-
bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 42/100
callstack/react-native-builder-bob#896 · 2 commenti ·
-
bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
-
bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 42/100
callstack/react-native-builder-bob#852 · 1 commento · 1 reazione ·
-
bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
callstack/react-native-builder-bob#829 · 20 commenti ·
Tutte le issue di callstack/react-native-builder-bob
Issue simili
-
automated issue report
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
lirantal/discoprint#36 ·
I maintainer di solito rispondono entro 1 giorno
-
accepting PR Content:HTML
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
mdn/content#45988 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
pnpm/pnpm#16635 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
txn2/mcp-data-platform#2030 ·
I maintainer di solito rispondono entro 1 giorno
-
ci hacktoberfest help wanted size/small type/bug type/docs type/enhancement up-for-grabs
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
Redo-San/RedoSan-Authenticity#527 ·
I maintainer di solito rispondono entro 1 giorno