'vue' is not an internal or external command, nor a runnable program or batch file.

After installing vue, the system still shows that the vue command cannot be found

Solution

1. Configure the path

Get the downloaded package path information
npm config get prefix
Set the path to the system environment variable

2. npm and npm -g

3. npm i @vue/cli -g

Guess you like

Origin www.cnblogs.com/qian-shan/p/12738350.html