ionic-team / ionic-team/vscode-ionic

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

Open
#142 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
15
Forks
3
PR merge metrics
No merged PRs in 30d

Description

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!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.