Today, when you run the Vue project, being given in the following figure when you run npm run dev:
Open package.js folder, find the folder where the scripts have dev below:
Case 1:
I could not be that good, what causes it? Finally, a look wrong path, vue init when webpack my-project, but it set up a folder, taking less than in the corresponding package.js dev.
cd to the corresponding folder, re-run npm run dev OK.
Case 2:
In another case, the current folder is open, but in the scripts folder package.js really no dev,
Enter vue init webpack will package.json lost:
"dev": "webpack-dev-server --inline --progress --config build/webpack.dev.conf.js",
"start": "npm run dev",
"build": "node build/build.js"
Re-download over, and then install rely on npm intall, can last npm run dev
Also applies to solve start, build missing
Case three:
Run the command npm run dev appear npm ERR missing script:! Dev errors
This is because vue version, using npm run serve to run the project
Bloggers finishing in
2: ----------------
Disclaimer: This article is the original article CSDN bloggers "honey edge of the wooden fish", and follow CC 4.0 BY-SA copyright agreement, reprint Please include links to the original source and this statement.
Original link: https: //blog.csdn.net/dt1991524/article/details/82985570
Wake flowers still exist, still in armor
https://www.cnblogs.com/yangda/p/10878029.html