You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running any NPM Script in vscode, I now get this:
Executing task: npm run npm-version
/usr/bin/bash: line 1: npm: command not found
* The terminal process "/usr/bin/bash '-c', 'npm run npm-version'" failed to launch (exit code: 127).
When running any NPM Script in vscode, I now get this:
I can run this fine in vscode terminal:
This worked fine a few weeks ago.
I updated vscode recently and now I cannot use the NPM Scripts.
I have node and npm installed using NVM.
I already tried fully removing node, npm and NVM. I even removed and reinstalled vscode but this issue still persists.
I use this script to install NVM:
Then I run:
I even ran this as others online said this worked for them (years ago):
Current version:
Which:
.bashrc
contains:I even tested moving that snippet to
.bash_profile
with no change.Since vscode was updated, NPM Scripts are broken.
I also tried installing older versions since when I run in bash I see this:
I tried
v18.20.4
:Same issue.
Even
v16.20.2
:Same issue.
Does this issue occur when all extensions are disabled?: Yes
Steps to Reproduce:
The text was updated successfully, but these errors were encountered: