Skip to content
Advertisement

‘vue’ is not recognized as an internal or external command

everything was installed correctly. but whenever I try to create project, it says “‘vue’ is not recognized as an internal or external command”. I installed and re-installed but didn’t work. npm was also added to environmental variable path.

C:UserstouhaDesktop>npm list -g --depth=0
C:Userstouha.npm-packages
`-- @vue/cli@3.8.2


C:UserstouhaDesktop>vue ui
'vue' is not recognized as an internal or external command,
operable program or batch file.

C:UserstouhaDesktop>

Advertisement

Answer

Locate vue.cmd and add its location to your PATH

It is added to package manager(npm or yarn) installation. So you may find it at following locations

YARN

C:Users{YourAccount}AppDataLocalYarnbin

NPM

C:Users{YourAccount}AppDataRoamingnpm

Advertisement