0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【Gitエラー】yarn.lockのコンフリクトを解消する

Posted at

起こったエラー

forkアプリ内でmasterを最新の状態にし、ローカルのdevelopにpullしようとした際に、

error: Your local changes to the following files would be overwritten by merge: 
    hogehoge/yarn.lock

というエラー文が出現した。


解決法

一度対象のyarn.lockファイルを削除してからもう一度pullをしたら成功した。

pull前に削除したyarn.lockファイルの中身と差異があったときのために、念のため、対象のディレクトリ下で

yarn install

を行った。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?