跟着老师写的,也打不开,能看出啥情况么?
DELL@DELL-PC MINGW64 /e/vue/my-project $ npm run dev > my-project@1.0.0 dev E:\vue\my-project > 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 ...client\index.js?http://localhost:8 10% building modules 2/3 modules 1 active ...\webpack\hot nonrecursive /^\.\/lo 10% building modules 2/4 modules 2 active ...5@webpack-dev-server\client\socket 10% building modules 2/5 modules 3 active ...@webpack-dev-server\client\overlay 10% building modules 3/5 modules 2 active ...@webpack-dev-server\client\overlay 10% building modules 3/6 modules 3 active ...t\node_modules\_url@0.11.0@url\url 10% building modules 3/7 modules 4 active ...pack@3.12.0@webpack\hot\dev-server 10% building modules 4/7 modules 3 active ...pack@3.12.0@webpack\hot\dev-server 10% building modules 5/7 modules 2 active ...pack@3.12.0@webpack\hot\dev-server 10% building modules 5/8 modules 3 active ...webpack@3.12.0@webpack\hot\emitter 10% building modules 6/8 modules 2 active ...webpack@3.12.0@webpack\hot\emitter 10% building modules 7/8 modules 1 active ...webpack@3.12.0@webpack\hot\emitter 10% building modules 7/9 modules 2 active ...es\_webpack@3.12.0@webpack\hot\log 10% building modules 8/9 modules 1 active ...es\_webpack@3.12.0@webpack\hot\log 10% building modules 8/10 modules 2 active ....12.0@webpack\hot\log-apply-resul 11% building modules 9/10 modules 1 active ....12.0@webpack\hot\log-apply-resul 11% building modules 9/11 modules 2 active ...\node_modules\_url@0.11.0@url\uti 11% building modules 9/12 modules 3 active ...\_punycode@1.4.1@punycode\punycod 11% building modules 9/13 modules 4 active ...ng-es3@0.2.1@querystring-es3\inde 11% building modules 10/13 modules 3 active ...ng-es3@0.2.1@querystring-es3\ind 11% building modules 11/13 modules 2 active ...ng-es3@0.2.1@querystring-es3\ind 11% building modules 11/14 modules 3 active ...odules\_events@3.0.0@events\even 11% building modules 11/15 modules 4 active ...glevel@1.6.3@loglevel\lib\loglev 11% building modules 11/16 modules 5 active ..._strip-ansi@3.0.1@strip-ansi\ind 11% building modules 12/16 modules 4 active ..._strip-ansi@3.0.1@strip-ansi\ind 11% building modules 13/16 modules 3 active ..._strip-ansi@3.0.1@strip-ansi\ind 11% building modules 13/17 modules 4 active ...nt@1.1.5@sockjs-client\dist\sock 11% building modules 14/17 modules 3 active ...nt@1.1.5@sockjs-client\dist\sock 11% building modules 15/17 modules 2 active ...nt@1.1.5@sockjs-client\dist\sock 11% building modules 16/17 modules 1 active ...nt@1.1.5@sockjs-client\dist\sock 11% building modules 16/18 modules 2 active ...s\_ansi-html@0.0.7@ansi-html\ind 11% building modules 16/19 modules 3 active ...pack@3.12.0@webpack\buildin\glob 11% building modules 16/20 modules 4 active ...pack@3.12.0@webpack\buildin\modu 11% building modules 16/21 modules 5 active ...g-es3@0.2.1@querystring-es3\enco 11% building modules 16/22 modules 6 active ...g-es3@0.2.1@querystring-es3\deco 11% building modules 16/23 modules 7 active ...entities@1.2.1@html-entities\ind 12% building modules 17/23 modules 6 active ...entities@1.2.1@html-entities\ind 12% building modules 18/23 modules 5 active ...entities@1.2.1@html-entities\ind 12% building modules 19/23 modules 4 active ...entities@1.2.1@html-entities\ind 12% building modules 20/23 modules 3 active ...entities@1.2.1@html-entities\ind 12% building modules 21/23 modules 2 active ...entities@1.2.1@html-entities\ind 12% building modules 22/23 modules 1 active ...nt@1.1.5@sockjs-client\dist\sock 12% building modules 22/24 modules 2 active ...2.1@html-entities\lib\xml-entiti 12% building modules 22/25 modules 3 active ...1@html-entities\lib\html4-entiti 12% building modules 22/26 modules 4 active ...1@html-entities\lib\html5-entiti 12% building modules 23/26 modules 3 active ...1@html-entities\lib\html5-entiti 12% building modules 24/26 modules 2 active ...1@html-entities\lib\html5-entiti 13% building modules 25/26 modules 1 active ...nt@1.1.5@sockjs-client\dist\sock 13% building modules 26/27 modules 1 active ..._ansi-regex@2.1.1@ansi-regex\ind 94% asset optimization ERROR Failed to compile with 1 errors4:15:35 AM This relative module was not found: * ./src/main.js in multi ./node_modules/_webpack-dev-server@2.11.5@webpack-dev-server/client?http://localhost:8085 webpack/hot/dev-server ./src/main.js
3
收起
正在回答
3回答
同学,你好,我又来了~
(1)可以选择批量删除依赖文件的方式,首先选中一部分文件,再按键盘上的delete键,一部分一部分删除
(2)这边跑了一下这个项目是不报错,可以正常下载运行启动的:
同学应该是下载的时候缺少了什么东西。在遇到每一个vue的项目时候操作流程可参考如下:
cnpm install --> cnpn run dev
安装过程中报错是很正常的,其中丢包、网络不稳定、环境等都是导致因素,我们要做的就是针对报错信息去改正和添加。针对同学问题中的报错信息,可以先删除依赖包文件,再执行如上命令,如果其中还是哪里报错,同学可以将截图粘贴至问答区,以便准确的为同学解决问题哦~
祝学习愉快~
Sherlock_bourne
2019-07-28 02:11:29
删不干净!跟牛皮藓似的!
4.Vue与React高级框架开发
- 参与学习 人
- 提交作业 239 份
- 解答问题 10739 个
本阶段带你深入前端开发的肌理,通过ES6基础知识和前端主流高级框架的学习,助你快速构建企业级移动webAPP应用,进入职场的终极battle
了解课程
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星