Error while installing erpnext_demo

frappe-bench]$ bench frappe --install_app erpnext_demo site1

install_app(app_name, verbose=verbose)
File “/home/erpnext/frappe-bench/apps/frappe/frappe/installer.py”, line 89, in install_app
app_hooks = frappe.get_hooks(app_name=name)
File “/home/erpnext/frappe-bench/apps/frappe/frappe/init.py”, line 462, in get_hooks
hooks = _dict(load_app_hooks(app_name))
File “/home/erpnext/frappe-bench/apps/frappe/frappe/init.py”, line 441, in load_app_hooks
app_hooks = get_module(app + “.hooks”)
File “/home/erpnext/frappe-bench/apps/frappe/frappe/init.py”, line 379, in get_module
return importlib.import_module(modulename)
File “/usr/lib64/python2.7/importlib/init.py”, line 37, in import_module
import(name)
ImportError: No module named erpnext_demo.hooks

Did you bench get-app first?

Correct command to get erpnext demo app first

bench get-app erpnext_demo https://github.com/frappe/erpnext_demo

then try to install it to specific site using following command:

bench --site {site} install-app erpnext_demo