You’re attempting to install ERPNext version 15 with Frappe version 16. This is not supported and will result in broken install. Switch to correct branch before installing.
bench version
erpnext 15.27.6
frappe 15.x.x-develop
hrms 16.0.0-dev
If Frappe is installed on the develop branch, then ERPNext and HRMS must also be on the develop branch. For example, if Frappe is installed in version 15, then ERPNext and HRMS must also be in version 15. In your case, ERPNext is installed in version 15, but Frappe and HRMS are installed on the develop branch, causing this issue.
The error you’re encountering occurs because you’re trying to install ERPNext version 15 with Frappe version 16, which are incompatible. To resolve this issue, you need to ensure that both ERPNext and Frappe are on compatible branches.
Here’s how you can avoid this error:
Switch to the compatible branches:
You need to switch your Frappe branch to the same version as ERPNext (version 15). Here’s how you can do it:
This will switch both Frappe and ERPNext to the stable version-15 branch.
Update and install:
After switching to the correct branch, you should update your bench and install ERPNext:
bench update --patch
bench install-app erpnext
Verify versions:
After switching the branches, you can check the versions to ensure they are compatible:
bench version
This should show that both ERPNext and Frappe are on version 15.
By ensuring that both Frappe and ERPNext app are on compatible branches, you should be able to avoid the installation error and successfully install ERPNext.