ionic-team / ionic-team/vscode-ionic

/bin/sh: line 1: npm: command not found using linux, nvm

Offen
#142 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
TypeScript
Sterne
15
Forks
3
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Hey,
The issue is similar to the mac related error discussed here: https://github.com/ionic-team/vscode-extension/issues/90

![image](https://github.com/ionic-team/vscode-extension/assets/5901699/c56584b2-c1d0-48fc-bb4e-9f1dee841d19)

The ```/bin/sh: line 1: npm: command not found``` error disappears when I'm change "Shell Path" in ionic plugin settings to this
```bash
PATH=$PATH:/home/sudosu/.nvm/versions/node/v20.9.0/bin /bin/zsh
```
In this case I get a failed state without reason.
![image](https://github.com/ionic-team/vscode-extension/assets/5901699/0b6e99ff-9dbf-46ca-919b-d054318f0464)

Environment:
- OS: Manjaro
- Node version: v20.9.0
- NPM Version: 10.1.0

What can I do to fix this issue?
Thanks in advance!

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

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