If you are running the latest bench:
run bench install-app erpnext
bench install-app erpnext
see bench help for the latest commands.
bench help