An error below: sh: vue - cli - service: command not found
solution:
terminal execute the command
#clear cache
npm cache clean --force
#reinstall
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
NODE_ENV=production
Try a few times more, if other reasons can refer to https://stackoverflow.com/questions/51172064/command-not-found-with-vue-cli
Read More:
- Mac Error: sh: vue-cli-service: command not found
- [Solved] Vue cli version is @ Vue/cli 4.5.13, and sass is used to report an error
- Mac Pyaudio Installation fatal error: ‘portaudio.h‘ file not found
- [MAC] How to Solve zsh Error: command not found: umi
- .sh error: ***.sh: 2: set: Illegal option – Solution
- When starting Vue project: cannot find module ‘webpack cli / bin / config yargs’ error resolution
- How to Solve hadoop3.x.x sh start-dfs.sh Startup Error
- [Solved] Vue3 Error: export ‘createRouter‘ was not found in ‘vue-router‘
- Vue Cli error: vuecliYou may need an additional loader to handle
- [Solved] Mac VS Code fatal error: ‘bits/stdc++.h‘ file not found
- How to Solve Hexo init error: bash: hexo: command not found
- Eslint error “no undef” and eslint rule configuration in Vue cli3
- HEXO D Command ERROR Deployer not found: git
- [Solved] Mac Cmake Complie openmp Error: fatal error: ‘omp.h‘ file not found
- [Solved] Mac Install mongodb error: NonExistentPath: Data directory /data/db not found.
- Visual Studio Code Error command ‘markdown.extension.onBackspaceKey’ not found
- [Solved] Error in porting libzrtp: automake-1.14: command not found
- [Solved] Latex&VScode Error: I found no bibdata command//command//citation—while reading file*.aux
- [Solved] kubectl error: sou-bash: _get_comp_words_by_ref: command not found
- Error starting vue project these dependencies were not found:create in ./src/router/modules/md.js