ionic-team / ionic-team/vscode-ionic

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

Đang mở
#142 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
TypeScript
Star
15
Fork
3
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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!

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Start by reproducing the issue in the VS Code Ionic extension on Manjaro with Node.js installed through nvm, using the default Shell Path. Compare the behavior with the related macOS issue at ionic-team/vscode-extension#90; done means npm is found through the configured shell and failures report a reason.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
node.js, typescript, vscode
Lĩnh vực
developer-experience, tooling
Loại issue
Lỗi
Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Cần làm rõ
Mức phù hợp với người mới
25/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.