Vue-cli scaffolding initialization project is running Times error

1. The project initialization statement vue init webpack vuex-iview
2.ESLint is preceded by y and followed by n
3. After initialization, cd vuex-iview then npm run dev
4. Next, I reported an error (I posted a full screenshot below). I have tried to reinstall node, and reinstall vue-cli, but did not solve
5. Wrong map!

Mar.02,2021

try uninstalling npm uninstall webpack-dev-server, before installing this npm I webpack-dev-server@2.9.7, mine can start normally.


this kind of problem does not occur in normal operation


I also encountered. Have you solved


you are missing a step? after cd to vuex-iview, you still need to npm install, and then you can


delete node_modules directory, use npm install , do not use cnpm. npm can also be set as a Taobao image. cnpm sometimes has a lot of problems with it, and installs some superfluous things for no reason.


I've been in your situation before. I will report this error when I use git, and I can run

properly using the command prompt of cmd.
Menu