[GH-ISSUE #277] npm not found in CLI when npm is not installed #187

Open
opened 2026-05-05 11:53:50 -06:00 by gitea-mirror · 0 comments
Owner

Originally created by @v1rtl on GitHub (Mar 26, 2020).
Original GitHub issue: https://github.com/kusti8/proton-native/issues/277

Describe the bug
When I don't have npm installed, CLI throws an error

To Reproduce

  1. Install CLI (using yarn / pnpm)
  2. Try this:
$ proton-native init QuarkPlayer
Creating a new Proton Native app on /home/v1rtl/Coding/QuarkPlayer

Installing packages... This may take a few minutes. 

/bin/sh: npm: command not found

Expected behavior
CLI should fallback to pnpm and yarn if npm is not present

Versions:

  • OS: Linux 5 x64
  • Version: 2.0.4
  • Node version 13.11.0

Additional context

There are other package managers than npm, two most popular are yarn and pnpm, so it is worth falling back to them in case npm is not in PATH (I use pnpm and don't have npm installed)

Originally created by @v1rtl on GitHub (Mar 26, 2020). Original GitHub issue: https://github.com/kusti8/proton-native/issues/277 **Describe the bug** When I don't have npm installed, CLI throws an error **To Reproduce** 1. Install CLI (using yarn / pnpm) 2. Try this: ``` $ proton-native init QuarkPlayer Creating a new Proton Native app on /home/v1rtl/Coding/QuarkPlayer Installing packages... This may take a few minutes. /bin/sh: npm: command not found ``` **Expected behavior** CLI should fallback to pnpm and yarn if npm is not present **Versions:** - OS: Linux 5 x64 - Version: 2.0.4 - Node version 13.11.0 **Additional context** There are other package managers than npm, two most popular are yarn and pnpm, so it is worth falling back to them in case npm is not in PATH (I use pnpm and don't have npm installed)
gitea-mirror added the
bug
label 2026-05-05 11:53:50 -06:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/proton-native#187
No description provided.