Running vue –version after installing @vue/cli returns an error :’vue’ is not an internal or external command, nor is it a runnable program or batch file.

Solution:

  • If it is an NPM installation, run NPM -g bin to add the address to the environment variable

  • If yarn is installed, run yarn Global bin to add the address to the environment variable