Vue project encountered "' Webpack-dev-server ' is not an internal or external command, and is not a running program or batch file" error

Source: Internet
Author: User

Recently in the company to do Vue project, svn the front-end colleague's project code, install the environment, run the project (install the steps casually Baidu, very detailed), console error "' Webpack-dev-server ' is not an internal or external command, is not a running program or batch file, random Baidu solution, and some say the need to reload the dependency package, and some say that the extension of user rights, have done, but the error is still.

Reason:

Randomly create a new Vue project (1190000009871504), found that there is no error, so it must be svn down the project code has a problem,

Workaround:

Finally, delete the "Node_modules" folder in the project, then CD to the project directory in cmd, run the command in turn: NPM Install and NPM run build, and then run the NPM run Dev project to run successfully.

Vue project encountered "' Webpack-dev-server ' is not an internal or external command, and is not a running program or batch file" error

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.