Problems with VSCode extension

I’m currently using the Ionic framework and have encountered an issue with one of my Visual Studio Code extensions. The extension has its own console for running code, but it doesn’t seem to be working properly with my nvm installation.

When I try to run the extension’s functionalities,. I receive an error message that says ‘zsh:1: command not found: npm’ for both npm and npx. I believe this may be due to a connection issue with nvm. It appears that the extension is using a different version of Node.js than the one I have installed via nvm. I’ve tried configuring the extension to use the correct version of Node.js, but it doesn’t seem to have an option for this.

Do you have any suggestions on how I can resolve this issue? Is there a way to configure the extension to use the correct version of Node.js, or is there another workaround I can try?

Hi, I think if you open vscode from the terminal, the issue should be fixed:

cd /path/to/your/ionic-project
code .

I also found some issues related to nvm on the VSCode extension’s github:

If the “open vscode from the terminal” method does not work,
you could try other methods mention in the issues,
or you might consider to open a new issue there.