Skip to main content

Posts

Showing posts with the label VUE

'vue-cli-service' is not recognized as an internal or external command

Are you encountering the error “‘vue-cli-service’ is not recognized as an internal or external command, operable program or batch file”? This error can be frustrating, but don’t worry, there are several solutions you can try to fix it. In this blog post, we’ll go through the steps to troubleshoot and resolve the error. Solution 1: Install the @vue/cli-service Package Globally The first solution is to install the @vue/cli-service package globally by running the following command in your terminal: npm install -g @vue/cli-service After installing the package, you should clear your npm cache by running the following command: npm cache clean --force Next, navigate to your project’s root directory (where your package.json file is located) and run the following command: npm install Finally, run the following command to serve your project: npm run serve Solution 2: Delete node_modules and Reinstall Dependencies If the error persists after trying solution 1, try deleting your node_modules and p...