gulpjs / gulpjs/gulp-cli

Suggest pnpm in missing modules error

Offen
#243 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
JavaScript
Sterne
408
Forks
112
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Before you open this issue, please complete the following tasks:

* [x] use the search bar at the top of the page to search this repository for similar issues or discussions that have already been opened.
* [x] if you are looking for help from the gulp team or community, open a [discussion](https://github.com/gulpjs/gulp/discussions).
* [x] if you think there is a problem with the plugin you're using, open a [discussion](https://github.com/gulpjs/gulp/discussions).
* [x] if you think there is a bug in our code, open this issue.

### What were you expecting to happen?

If node_modules aren't present and `pnpm-lock.yaml` is present, gulp-cli should say "Try running: pnpm install"

### What actually happened?

It defaults to suggesting "npm install". The issue is [this line](https://github.com/gulpjs/gulp-cli/blob/master/index.js#L172).

### Please give us a sample of your gulpfile
N/A

### Terminal output / screenshots
![modules-not-found-gulp](https://github.com/gulpjs/gulp-cli/assets/16446715/54055f11-6bfd-46e7-94ba-f64f6f58d2e6)

### Please provide the following information:
N/A - This happens in any environment.

### Additional information
N/A

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Start at index.js around line 172, where gulp-cli suggests npm install when node_modules is missing. Check the package-manager lockfile condition described in the issue and verify that a project with pnpm-lock.yaml receives the pnpm install suggestion while the existing fallback remains unchanged.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
javascript
Bereich
cli
Issue-Typ
Bug
Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Aktivitätsstatus
Veraltet
Klarheit
Klar beschrieben
Anfängerfreundlichkeit
55/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.