将本地文件添加到git repo 抛出无限错误警告

问题描述 投票:0回答:0

当我尝试将我的本地代码添加到新创建的 git repo 时,会抛出以下错误。 https://i.stack.imgur.com/4o3VC.png

警告:在“node_modules/@babel/runtime-corejs3/helpers/objectDestructuringEmpty.js”的工作副本中,下次 Git 触及它时,LF 将被 CRLF 替换 警告:在“node_modules/@babel/runtime-corejs3/helpers/wrapRegExp.js”的工作副本中,下次 Git 触及它时,LF 将被 CRLF 取代 警告:在“node_modules/@babel/runtime-corejs3/helpers/writeOnlyError.js”的工作副本中,下次 Git 触及它时,LF 将被 CRLF 取代 警告:在“node_modules/@babel/runtime-corejs3/node_modules/regenerator-runtime/LICENSE”的工作副本中,下次 Git 触及它时,LF 将被 CRLF 替换
警告:在“node_modules/@babel/runtime-corejs3/node_modules/regenerator-runtime/README.md”的工作副本中,下次 Git 触及它时,LF 将被 CRLF 替换
警告:在“node_modules/@babel/runtime-corejs3/node_modules/regenerator-runtime/package.json”的工作副本中,下次 Git 触摸它时,LF 将被 CRLF 替换警告:在“node_modules/@”的工作副本中babel/runtime-corejs3/node_modules/regenerator-runtime/path.js', 下一次 Git 碰到 LF 就会被 CRLF 代替
警告:在“node_modules/@babel/runtime-corejs3/node_modules/regenerator-runtime/runtime.js”的工作副本中,下次 Git 触及它时,LF 将被 CRLF 替换
警告:在“node_modules/@babel/runtime-corejs3/package.json”的工作副本中,下次 Git 触及它时,LF 将被 CRLF 替换 警告:在“node_modules/@babel/runtime-corejs3/regenerator/index.js”的工作副本中,下次 Git 触及它时,LF 将被 CRLF 替换 警告:在“node_modules/@babel/runtime/README.md”的工作副本中,下次 Git 触及它时,LF 将被 CRLF 替换 警告:在'node_modules/@babel/runtime/core-js.js'的工作副本中,下次 Git 触及它时,LF 将被 CRLF 替换

我已尝试以下步骤仍然无效 npm install --save-exact @babel/[email protected] 然后删除 package-json.lock 文件和 node_modules 文件夹,然后使用 npm install 重新安装。

git babeljs warnings local
© www.soinside.com 2019 - 2024. All rights reserved.