Could not able to install Erpnext on mac

Hello everyone,

I am trying to install ERPNext on mac.
while trying bench init frappe-bench this command I am getting the following traceback error

$ /opt/homebrew/bin/virtualenv --quiet env -p python3
$ /Users/nivedhavelmurugan/frappe/frappe-bench/env/bin/python -m pip install --quiet --upgrade pip
Getting frappe
$ git clone GitHub - frappe/frappe: Low code web framework for real world applications, in Python and Javascript --depth 1 --origin upstream
Cloning into ‘frappe’…
remote: Enumerating objects: 3204, done.
remote: Counting objects: 100% (3204/3204), done.
remote: Compressing objects: 100% (2852/2852), done.
remote: Total 3204 (delta 440), reused 1219 (delta 251), pack-reused 0
Receiving objects: 100% (3204/3204), 16.67 MiB | 3.06 MiB/s, done.
Resolving deltas: 100% (440/440), done.
Installing frappe
$ /Users/nivedhavelmurugan/frappe/frappe-bench/env/bin/python -m pip install --quiet --upgrade -e /Users/nivedhavelmurugan/frappe/frappe-bench/apps/frappe
$ yarn install
env: node: No such file or directory
Traceback (most recent call last):
File “/opt/homebrew/lib/python3.9/site-packages/bench/commands/”, line 70, in init
File “/opt/homebrew/lib/python3.9/site-packages/bench/utils/”, line 95, in wrapper_fn
return fn(*args, **kwargs)
File “/opt/homebrew/lib/python3.9/site-packages/bench/utils/”, line 78, in init
File “/opt/homebrew/lib/python3.9/site-packages/bench/”, line 371, in get_app
app.install(verbose=verbose, skip_assets=skip_assets, restart_bench=restart_bench)
File “/opt/homebrew/lib/python3.9/site-packages/bench/utils/”, line 110, in wrapper_fn
return fn(*args, **kwargs)
File “/opt/homebrew/lib/python3.9/site-packages/bench/”, line 198, in install
File “/opt/homebrew/lib/python3.9/site-packages/bench/”, line 428, in install_app“yarn install”, cwd=app_path)
File “/opt/homebrew/lib/python3.9/site-packages/bench/”, line 43, in run
return exec_cmd(cmd, cwd=cwd or self.cwd)
File “/opt/homebrew/lib/python3.9/site-packages/bench/utils/”, line 126, in exec_cmd
raise CommandFailedError

ERROR: There was a problem while creating frappe-bench
Do you want to rollback these changes? [y/N]:


Hi mate, it may be better if you use powershell to install frappe and ERPNext.