Mac error: SH: Vue cli service: command not found

An error below: sh: vue - cli - service: command not found

terminal execute the command

#clear cache
npm cache clean --force   
npm/cnpm  install

Another online article roughly said 3 solutions
1. Reinstall the
delete folder node_modules in carrying out NPM/CNPM install to install
2. Specify the path
./node_modules/.bin/vue-cli-service build
3. Global installation
npm install @vue/cli-service -g
Try a few times more, if other reasons can refer to

Read More: