记录运行项目的一些报错

一、git pull 报错

There is no tracking information for the current branch. Please specify whic...

There is no tracking information for the current branch.

Please specify which branch you want to merge with.

See git-pull(1) for details

git pull <remote> <branch>
If you wish to set tracking information for this branch you can do so with:

git branch --set-upstream-to=origin/<branch>

 问题原因:本地分支和远程分支没有建立联系

解决办法:运行提示给你的命令

git branch --set-upstream-to=origin/远程分支的名字  本地分支的名字

例如:远程分支叫vue_study 想要创建远程这个分支的本地分支,并关联起来

git branch --set-upstream-to=origin/vue_study  vue_study

正确的话返回下面代码:

Branch 'vue_study' set up to track remote branch 'vue_study' from 'origin'.

表示关联成功

再git pull下拉代码,就会成功了

二、You may use special comments to disable some warnings.

You may use special comments to disable some warnings.
Use // eslint-disable-next-line to ignore the next line.
Use /* eslint-disable */ to ignore all warnings in a file.

 解决办法:取消ESlint的检测,将useEslint设为false(可以全局搜一下,找到index.js这个文件下的useEslint,将值设为false)

三、npm i报错

104 packages are looking for funding
  run `npm fund` for details

 这个不算是报错,是给开源代码者捐钱的,

解决办法:

npm install --no-fund 

四、将远程git仓库里的指定分支拉取到本地(本地不存在的分支)报错

error: Your local changes to the following files would be overwritten by checkout:
        yarn.lock
Please commit your changes or stash them before you switch branches.
Aborting

 解决办法:

本地更改不重要,先取消,然后重新运行:

git checkout -b 本地分支名 origin/远程分支名

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值