在执行npm run dev 时出错

来源:6-1 Vue项目预热 - 环境配置

彼岸花开111

2019-01-25

老师您好,在项目启动的时候出现这个错误图片描述

git add . 的时候 会有部分的警告如下:

warning: LF will be replaced by CRLF in README.md.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in .babelrc.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in .editorconfig.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in .eslintignore.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in .eslintrc.js.

写回答

2回答

Dell

2019-01-26

你把node_modules删掉,重新安装一次依赖,再启动看看

0
2
彼岸花开111
非常感谢!
2019-02-22
共2条回复

彼岸花开111

提问者

2019-01-26

重新安装了依赖 会有报错 运行的时候却可以打开页面了 只是后面安装vue-awesome-swiper的时候也会报这样的错误

//img.mukewang.com/szimg/5c4c3f940001fd0309150544.jpg

0
1
Dell
webpack 删了,重新安一下,再试试
2019-01-26
共1条回复

Vue2.5-2.6-3.0开发去哪儿网App 零基础入门到实战

课程紧跟Vue3版本迭代,企业主流版本Vue2+Vue3全掌握

10675 学习 · 8191 问题

查看课程