Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Doesn't work with NPM

Aperta
#919 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

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

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

bug
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

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di callstack/react-native-builder-bob

Tutte le issue di callstack/react-native-builder-bob

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.