Home >Web Front-end >Vue.js >How to solve the problem that vue-cli-service is not an internal or external command

How to solve the problem that vue-cli-service is not an internal or external command

青灯夜游
青灯夜游Original
2021-02-08 17:15:2156351browse

Causes and solutions: 1. The project did not execute "npm install" and the relevant dependency packages could not be found; just execute "npm install". 2. The project's dependency package is damaged; you need to delete the node_modules folder first, and then execute the "npm install" command to reinstall it.

How to solve the problem that vue-cli-service is not an internal or external command

The operating environment of this tutorial: windows7 system, vue2.9 version, Dell G3 computer.

vue-cli-service is not an internal or external command

How to solve the problem that vue-cli-service is not an internal or external command

Cause 1. The newly pulled project did not execute npm install. The relevant dependency package cannot be found (that is, there is no node_modules folder). Solution: Execute npm install

Cause 2. The project's dependency package is damaged. Solution: Delete the node_modules folder, execute npm install and reinstall

For more programming-related knowledge, please visit:Programming Teaching! !

The above is the detailed content of How to solve the problem that vue-cli-service is not an internal or external command. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn