[SOLVED] [v7] Bench update error, updating to nodejs 5.x or 6.x

Hi there,

got another error on bench update on both VM ERPNext-Production and Dev :

bench update
Traceback (most recent call last):
  File "/usr/local/bin/bench", line 9, in <module>
    load_entry_point('bench', 'console_scripts', 'bench')()
  File "/home/frappe/bench-repo/bench/cli.py", line 40, in cli
    bench_command()
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 716, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 696, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1060, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 889, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 534, in invoke
    return callback(*args, **kwargs)
  File "/home/frappe/bench-repo/bench/commands/update.py", line 30, in update
    patches.run(bench_path='.')
  File "/home/frappe/bench-repo/bench/patches/__init__.py", line 21, in run
    result = execute(bench_path)
  File "/home/frappe/bench-repo/bench/patches/v3/celery_to_rq.py", line 7, in execute
    frappe_branch = get_current_branch('frappe', bench_path)
  File "/home/frappe/bench-repo/bench/app.py", line 179, in get_current_branch
    return get_cmd_output("basename $(git symbolic-ref -q HEAD)", cwd=repo_dir)
  File "/home/frappe/bench-repo/bench/utils.py", line 284, in get_cmd_output
    return subprocess.check_output(cmd, cwd=cwd, shell=True, stderr=open(os.devnull, 'wb')).strip()
  File "/usr/lib/python2.7/subprocess.py", line 566, in check_output
    process = Popen(stdout=PIPE, *popenargs, **kwargs)
  File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory: './apps/frappe'
frappe@erpnext:~/frappe-bench/apps/erpnext/erpnext$ cd ..
frappe@erpnext:~/frappe-bench/apps/erpnext$ cd..
cd..: command not found
frappe@erpnext:~/frappe-bench/apps/erpnext$ cd ..
frappe@erpnext:~/frappe-bench/apps$ cd ..
frappe@erpnext:~/frappe-bench$ bench update

No node executable was found on your machine.
Please install node 5.x before
running "bench update".
Installation instructions for CentOS and Ubuntu can be found on
the following link,
"https://www.metachris.com/2015/10/how-to-install-nodejs-5-on-centos-and-ubuntu/"

Can you please have a look?

Thx

Just follow the link given and install it

I have following latest version, but still getting this error.

indictrans@indictrans-Vostro-1550:~/v7/frappe-bench$ nodejs --version
v0.10.25

Can anyone please give details about this error?

Regards,
Sambhaji Kolate,
New Indictrans Technologies Pvt Ltd.

same version over here …

The new version of socketio does not work on node 0.10

So we will have to update your nodejs to 5.x

Please google for your distro. It should be quite simple.

1 Like

5.x version seems to be deprecated …should install 6.x?

installed node 6.x …update successful.

1 Like

@JoEz

Can you give steps/commands to un-install old node.js and install node 6.x?
It will be helpful for others who are not programmers.

@kolate_sambhaji sure, go to:

https://nodejs.org/en/download/package-manager/

and choose the one for your OS.

4 Likes

Simple method to update installed node Ver 0.10.x to Ver 6.x on CentOS 7

sudo yum remove -y nodejs npm
sudo yum install -y nodejs
sudo yum install -y gcc-c++ make
node -v
npm -v

2 Likes