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

This error message indicates that the system does not recognize the 'vue-cli-service' command, which means that the corresponding executable file is not found in the system.

This is usually caused by the command's environment variables not being configured correctly.

Solution:

  1. Make sure you have installed vue-cli globally:npm install -g @vue/cli
  2. Try running vue-cli-service with an absolute path, eg:/usr/local/bin/vue-cli-service
  3. Try reopening the command line window or restarting the computer.
  4. Make sure that the environment variables are configured correctly, you can try to enter in the command line window echo $PATHto check whether the environment variables are configured correctly.

Guess you like

Origin blog.csdn.net/weixin_42605397/article/details/129536387