warning Delete `␍`
时间: 2024-04-25 19:21:23 浏览: 62
Python 忽略warning的输出方法
5星 · 资源好评率100%
这个警告是由Prettier插件引起的,它提示你删除了一个特殊字符`␍`。这个字符通常是由于不同操作系统之间的换行符差异引起的。在Windows系统中,换行符是由回车符(`CR`)和换行符(`LF`)组成的,而在Unix和Linux系统中,换行符只是一个换行符(`LF`)。因此,当你从文库中复制代码时,可能会出现这个特殊字符。Prettier插件会检测到这个字符并给出警告,建议你删除它。你可以通过运行`npm run lint --fix`命令来修复这个警告,或者执行`git config --global core.autocrlf false`命令来关闭Git的自动换行符转换功能。不过,这个警告并不会影响项目的运行,所以你也可以选择在打包之前再执行上述步骤。\[1\]\[3\]
#### 引用[.reference_title]
- *1* [Vue 编译错误 warning Delete `␍` prettier/prettier](https://blog.csdn.net/jw19950424/article/details/125674331)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [Vue 之 编译之 处理 warning Delete `␍` prettier/prettier](https://blog.csdn.net/u014361280/article/details/124608683)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [《存档》报错-warning Delete `␍` prettier/prettier](https://blog.csdn.net/good007boy/article/details/120173164)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文