Vue-cli: 'vue' is not recognized as an internal or external command, operable program or batch file.

Created on 18 Aug 2018  路  10Comments  路  Source: vuejs/vue-cli

Node version : v8.11.4
npm version: 5.6.0
Commands fired

npm install -g vue-cli
npm install -g vue
vue install wepack test
Following error is thrown

'vue' is not recognized as an internal or external command,operable program or batch file.

When I type vue -v also, I am getting the above error

I also added to windows the path of Vue.js
screenshot 10

I also noticed that vue.cmd is not coming the following directory
C:\Users\HP\AppData\Roaming\npm

Can anybody please help me to sort the problem

Most helpful comment

Please make sure

C:\Users\Your_User_Name\AppData\Roaming\npm
is added to System Variable Paths

All 10 comments

Hello, your issue has been closed because it does not conform to our issue requirements. In order to ensure every issue provides the necessary information for us to investigate, we require the use of the Issue Helper when creating new issues. Thank you!

Read documentations please

The package name changed from vue-cli to @vue/cli. If you have the previous vue-cli (1.x or 2.x) package installed globally, you need to uninstall it first with npm uninstall vue-cli -g or yarn global remove vue-cli.

Sure sir, thanks for the same. I have downloaded and provided that path in windows and it worked for me

Hi allenshaji, I'm getting the same error. Can you tell me what you have downloaded and which path you provided in windows that helped you? Thank you!

Please make sure

C:\Users\Your_User_Name\AppData\Roaming\npm
is added to System Variable Paths

Try to search vue.cmd on your machine, then add this path to evn variables. This worked for me.

hi! i would like to ask on how to fix this issue 'vue-cli-service' is not recognized as an internal or external command,
operable program or batch file. I try to use npm install --global @vue/cli but it doesn't work

Node version : v8.11.4
npm version: 5.6.0
Commands fired

npm install -g vue-cli
npm install -g vue
vue install wepack test
Following error is thrown

'vue' is not recognized as an internal or external command,operable program or batch file.

When I type vue -v also, I am getting the above error

I also added to windows the path of Vue.js
screenshot 10

I also noticed that vue.cmd is not coming the following directory
C:\Users\HP\AppData\Roaming\npm

Can anybody please help me to sort the problem

Please make sure
to add
C:\Users\Your_User_Name\AppData\Roaming\npm
to the Paths in Environment Variables.

thanks this helped 馃槃

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JIANGYUJING1995 picture JIANGYUJING1995  路  3Comments

eladcandroid picture eladcandroid  路  3Comments

DrSensor picture DrSensor  路  3Comments

brandon93s picture brandon93s  路  3Comments

miyamoto-san picture miyamoto-san  路  3Comments