vue-cli-service.js' not found
时间: 2023-09-22 19:14:16 浏览: 124
This error usually occurs when the command `vue-cli-service` cannot be found or executed. Here are some possible solutions:
1. Make sure you have installed the Vue CLI globally using the command `npm install -g @vue/cli`.
2. Check if you are running the command from the correct directory. You should be in the root directory of your Vue project.
3. Try deleting the `node_modules` folder and reinstalling the dependencies using `npm install`.
4. If you are using a different version of Vue CLI, make sure to use the correct command. For example, if you are using Vue CLI 2.x, the command should be `vue init` instead of `vue create`.
5. If none of the above solutions work, try updating your Node.js and NPM versions to the latest stable releases.
If the issue persists, you can try posting your problem on the Vue CLI GitHub repository or Vue.js forum for further assistance.
阅读全文