Replies: 1 comment
-
It's a known problem in vscode that is now fixed. see issue here. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
My nvm for windows installation has been working great for months, but lately (like for a week or two) when I run a "npm run serve" in a vscode terminal, I get the error
'vite' is not recognized as an internal or external command, operable program or batch file.
If I use cross-env or get rid of cross-env and use vitest directly, then whatever command I use can't be found either. The package.json has these in the scripts
According to AI, it looks like this is happening because
So, if I prefix each script with the full path to node.exe (which is C:\Users\%USERNAME%\Roaming\nvm\nodejs\node.exe) it works, which isn't ideal for a CI/CD system.
The odd thing is bullet point 1 (availability in cmd.exe) seems to only be true in vscode (if I run a cmd.exe in Windows, it works fine, just not in vscode).
I did put an issue into vscode (nvm's nodejs stopped working in vscode terminal), but has anyone else seen this in their Windows environment with vscode?
Beta Was this translation helpful? Give feedback.
All reactions