Vue项目 npm run dev时报依赖错误,无力解决,求大神帮忙看看
发布于 5天前 作者 hanwind 190 次浏览 来自 问答

F:\VueProject\myproject>npm run dev

myproject@1.0.0 dev F:\VueProject\myproject webpack-dev-server --inline --progress --config build/webpack.dev.conf.js

10% building modules 0/1 modules 1 active … webpack/hot/dev-server ./src/main 10% building modules 1/2 modules 1 active …ode_modules\webpack\hot\dev-server 10% building modules 2/3 modules 1 active …oject\node_modules\webpack\hot\log 10% building modules 2/4 modules 2 active …dules\webpack\hot\log-apply-result 10% building modules 2/5 modules 3 active …t\node_modules\webpack\hot\emitter 10% building modules 3/5 modules 2 active …t\node_modules\webpack\hot\emitter 10% building modules 4/5 modules 1 active …t\node_modules\webpack\hot\emitter 10% building modules 5/6 modules 1 active …project\node_modules\events\events 94% asset optimization

** ERROR Failed to compile with 2 errors 21:27:11**

This dependency was not found:

  • F:\VueProject\myproject\node_modules\webpack-dev-server\client\index.js?http:/ /localhost:8080 in multi (webpack)-dev-server/client?http://localhost:8080 webpa ck/hot/dev-server ./src/main.js

To install it, you can run: npm install --save F:\VueProject\myproject\node_modu les\webpack-dev-server\client\index.js?http://localhost:8080

This relative module was not found:

  • ./src/main.js in multi (webpack)-dev-server/client?http://localhost:8080 webpa ck/hot/dev-server ./src/main.js

WAIT Compiling… 21:27:11

94% asset optimization

** ERROR Failed to compile with 2 errors 21:27:12**

This dependency was not found:

  • F:\VueProject\myproject\node_modules\webpack-dev-server\client\index.js?http:/ /localhost:8080 in multi (webpack)-dev-server/client?http://localhost:8080 webpa ck/hot/dev-server ./src/main.js

To install it, you can run: npm install --save F:\VueProject\myproject\node_modu les\webpack-dev-server\client\index.js?http://localhost:8080

This relative module was not found:

  • ./src/main.js in multi (webpack)-dev-server/client?http://localhost:8080 webpa ck/hot/dev-server ./src/main.js

WAIT Compiling… 21:27:12

94% asset optimization

** ERROR Failed to compile with 2 errors 21:27:12**

This dependency was not found:

  • F:\VueProject\myproject\node_modules\webpack-dev-server\client\index.js?http:/ /localhost:8080 in multi (webpack)-dev-server/client?http://localhost:8080 webpa ck/hot/dev-server ./src/main.js

To install it, you can run: npm install --save F:\VueProject\myproject\node_modu les\webpack-dev-server\client\index.js?http://localhost:8080

This relative module was not found:

  • ./src/main.js in multi (webpack)-dev-server/client?http://localhost:8080 webpa ck/hot/dev-server ./src/main.js
回到顶部