New installation of Frappe Bench shows changes in `yarn.lock`

I did a fresh installation of frappe bench with

bench init frappe-bench

However, if I try and update this with:

bench update

I get the following message:

Cannot proceed with update: You have local changes in app "frappe" that are not committed.

Here are your choices:

1. Merge the frappe app manually with "git pull" / "git pull --rebase" and fix conflicts.
1. Temporarily remove your changes with "git stash" or discard them completely
	with "bench update --reset" or for individual repositries "git reset --hard"
2. If your changes are helpful for others, send in a pull request via GitHub and
	wait for them to be merged in the core.

On checking the frappe app with git status, I get:

On branch develop
Your branch is up to date with 'upstream/develop'.

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

	modified:   yarn.lock

no changes added to commit (use "git add" and/or "git commit -a")

Can someone confirm if this is normal behaviour or a bug?

No this is not normal. You probably have rebuild your yarn.lock files

But I have just done bench init frappe-bench . Haven’t made any changes after that but am being shown this error. You mean I could have made some changes to my system itself which might be causing this error? Has anyone tried installing a new instance within the last couple of days?

There was an earlier thread which had showed similar problem:

Is this just because by default the develop branch is downloaded?

Encountered the same issue!

1 Like

I think it’s important to update information in the readme for Frappe Bench. Users should be informed of the option to include relevant flags (to specify required branch) when setting up an additional bench

I was surprised to discover that frappe and erpnext on the new bench were set to develop branch by default

Cheers

1 Like

same here
how to fix it?

What I did was:
cd apps/frappe
git stash

Then go in to the main folder and continue as before.