首次打开vue运行出错,error Expected linebreaks to be ‘CRLF‘ but found ‘LF‘ linebreak-style
生活随笔
收集整理的這篇文章主要介紹了
首次打开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库学习--
- 下一篇: 如何将PPT转换成Word文档?