第一次学习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"],
}
即可。