Error while updating erpnext

When i do bench update --reset i am facing this error

Requirement already up-to-date: pip in ./env/lib/python2.7/site-packages (18.1)
INFO:bench.utils:./env/bin/pip install -q -r /opt/bench/bench-repo/requirements.txt
frappe 10.1.54 has requirement GitPython==2.1.11, but you'll have gitpython which is incompatible.
INFO:bench.utils:./env/bin/pip install -q -r ./apps/frappe_io/requirements.txt
INFO:bench.utils:./env/bin/pip install -q -r ./apps/frappe/requirements.txt
Updating node packages...
INFO:bench.utils:yarn install
yarn install v1.10.1
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning "rollup-plugin-vue > @vue/component-compiler@3.4.4" has unmet peer dependency "postcss@>=6.0".
[4/4] Building fresh packages...
Done in 3.15s.
Backing up sites...
Patching sites...
Migrating jrsm1
Updating DocTypes for frappe        : [========================================]
Syncing help database...
yarn run v1.10.1
$ FRAPPE_ENV=production node rollup/build.js
Production mode
✔ Built js/moment-bundle.min.js
✔ Built js/libs.min.js

Building frappe assets...

✔ Built js/print_format_v3.min.js
✔ Built js/dialog.min.js
✔ Built js/web_form.min.js
✔ Built js/form.min.js
✔ Built js/list.min.js
✔ Built js/chat.js
✔ Built js/desk.min.js
✔ Built css/frappe-rtl.css
✔ Built css/module.min.css
✔ Built css/form.min.css
✔ Built css/list.min.css
✔ Built css/report.min.css
✔ Built frappe/css/email.css
✔ Built css/web_form.css
✔ Built css/frappe-web.css
✔ Built css/desk.min.css
✔ Built js/frappe-web.min.js
✔ Built js/report.min.js
SyntaxError: Unexpected token (18:3487) in /opt/bench/erpnext/apps/frappe/node_modules/quill-mention/dist/quill.mention.min.js
✔ Built js/control.min.js
✨  Done in 33.735s
Done in 35.11s.
Bench: Deployment tool for Frappe and ERPNext (
Open source depends on your contributions, so please contribute bug reports, patches, fixes or cash and be a part of the community

I think this is the source of the problem


sudo apt-get update --fix-missing
sudo apt install python-setuptools python-setuptools-git


pip install GitPython==2.1.11

It’s not working.

Can you share the traceback screen?