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

Front-end project running times

 

vue-cli-service is not recognized as an internal or external command, nor is it an operable program. Required when error occurs

Step 1: Check if there is one in package.json. If  vue-cli-servernot, you need to install it.

Step 2: Execute npm installthe command

Step 3: Execute npm run servethe command to check whether the program is running normally

Step 4: If there is still an exception, check whether there is  a node  modules file. You can modify the file name of the node modules (you can also delete the node modules directly here); reinstall the node modules;
if not, install vue-cli-service separately;npm install vue-cli-service -S

Guess you like

Origin blog.csdn.net/weixin_61728046/article/details/127306125