TIA for your help as I'm a beginner working with node and Vue.
I had been working with Vue 2 so I tried to update the version by running 'npm install -g @vue/cli' via command line. However, after I ran the command, I got these messages: 'npm' is not recognized as an internal or external command, operable program or batch file. 'vue' is not recognized as an internal or external command, operable program or batch file.
What went wrong with the 'npm install -g @vue/cli' command and how can I fix this?
When I check node -v and nvm -v it runs just fine, but npm and vue for some reason are no longer recognized. I rebooted my computer a few times, changed the environment variable from other stack overflow advices, but nothing worked and I'm out of solutions.