Doesn't work with NPM
Dieses Issue hat noch niemand übernommen.
- #956 von @MatrixNeoKozak — ohne Merge geschlossen
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 45/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- javascript, react-native
- Bereich
- build-system, tooling
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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
- Vorherrschende Sprache
- JavaScript
- Sterne
- 3.2k
- Forks
- 229
- Ø Merge
- 2 T. 15 Std.
- Gemergte PRs (30 T.)
- 5
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus callstack/react-native-builder-bob
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 42/100
callstack/react-native-builder-bob#901 · 1 Kommentar ·
-
bug
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 42/100
callstack/react-native-builder-bob#896 · 2 Kommentare ·
-
bug
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 25/100
-
bug
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 42/100
callstack/react-native-builder-bob#852 · 1 Kommentar · 1 Reaktion ·
-
bug
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
callstack/react-native-builder-bob#829 · 20 Kommentare ·
Alle Issues in callstack/react-native-builder-bob
Ähnliche Issues
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 70/100
Maintainer antworten meist innerhalb von 1 Tag
-
Add: Story4 CZOffencheck:passed logos:add
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 70/100
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
adobe/helix-shared#1310 ·
Maintainer antworten meist innerhalb von 1 Tag
-
[workshop-sim] Improve: Strengthen practice and checkpoints in Step 05 (What Are Agentic Workflows?)Offenfeedback simulation workshop
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 85/100
githubnext/gh-aw-workshop#4972 ·
Maintainer antworten meist innerhalb von 1 Tag
-
agent/ci-maintainer ci good first issue help wanted stage/010-actionable
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 80/100
cncf/endusers#1890 · 3 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag