Prerequisite: The computer has Nodejs and NPM installed, and the project is a ZIP package that is downloaded directly. The error step is 1:cd/d directory; 2. NPM ren dev-------> Errors are as follows:
> Webpack-dev-server--inline--progress--config build/webpack.dev.conf.js
' Webpack-dev-server ' is not an internal or external command, nor is it a running program
or batch file.
NPM err! Code elifecycle
NPM err! errno 1
NPM err! [Email protected] Dev: ' webpack-dev-server--inline--progress--config build/webpack.dev.conf.js '
NPM err! Exit Status 1
NPM err!
NPM err! Failed at the [email protected] dev script.
NPM err! This is probably not a problem with NPM. There is likely additional logging output above.
NPM WARN Local Package.json exists, but node_modules missing, do you mean to install?
NPM err! A Complete log of the This run can is found in:
NPM err! C:\Users\lara\AppData\Roaming\npm-cache\_logs\2018-06-12T09_40_42_892Z-debug.log
”
Ah, an error after the face of a confused force, thought, not that direct run Dev can open it!!! Calm down and check the reason on the Internet. Much of the web started with the creation of VUE projects and did not find out how to open a project.
Vaguely feel is the installation of the problem, finally see: 79203698 the method of the great God, after trying, hey, 8080 opened ~ ~ ~
My steps:
1. I did not find Node_modules "folder, so directly under the project directory: NPM install;
2. NPM run build;
3. NPM Run Dev successfully waits a few seconds to automatically open the localhost:8080
In addition: a long time ago the installation of node is required to upgrade, Project Package.json has the minimum version of the requirements, so pay attention!
Vue project: npm run dev B error "' Webpack-dev-server ' is not an internal or external command, nor is it a running program or batch file. ”