ionic-team / ionic-team/vscode-ionic

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

オープン
#142 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
TypeScript
スター
15
フォーク
3
PR マージ指標
30日以内にマージされた PR はありません

説明

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!

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
node.js, typescript, vscode
領域
developer-experience, tooling
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。