当前位置:
首页 >
首次打开vue运行出错,error Expected linebreaks to be ‘CRLF‘ but found ‘LF‘ linebreak-style
发布时间:2024/1/1
45
豆豆
生活随笔
收集整理的这篇文章主要介绍了
首次打开vue运行出错,error Expected linebreaks to be ‘CRLF‘ but found ‘LF‘ linebreak-style
小编觉得挺不错的,现在分享给大家,帮大家做个参考.
第一次学习vue
安装好node.js
下载个开源的vuethink作学习。
去到目录下,运行npm run dev,出现如下错误
error Expected linebreaks to be 'CRLF' but found 'LF' linebreak-style
打开http://localhost:8080/,显示如下
Can't get
百度找到方法如下:
编辑根目录.eslintrc文件 rules 属性,"rules": { "linebreak-style": [0,"error", "windows"], }
"rules": {
"linebreak-style": [0,"error", "windows"],
}
即可。
总结
以上是生活随笔为你收集整理的首次打开vue运行出错,error Expected linebreaks to be ‘CRLF‘ but found ‘LF‘ linebreak-style的全部内容,希望文章能够帮你解决所遇到的问题。
- 上一篇: STM32CubeMX与HAL库学习--
- 下一篇: linebreak_vue-cli构建的