Problems while setting up vue-cli

Well, problem was solved by simply deleting everything related to vue-cli installed before. And re-installing vue-cli.


yarn add @vue/cli-service

or

npm install @vue/cli-service

is what worked for me


I follow these commands, It's work fine for me.

npm install -g vue-cli

npm install -g vue

Edit the System environment variables, and enter the following path, and if still having a problem just try to add a path in System User Variables

C:\Program Files\nodejs\node.exe;

C:\Users\{UserName}\AppData\Roaming\npm

Check vue installed in C:\Users{UserName}\AppData\Roaming\npm enter image description here

Image 1

Image 2

Image 3