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