[SOLVED] [ERROR]: Non-zero exit satus 1 Error while updating to v7

im doing a bench update and im getting this as the error

frappe@erpnext:~/frappe-bench$ bench update
Traceback (most recent call last):
  File "/usr/local/bin/bench", line 9, in <module>
    load_entry_point('bench==2.1.0', 'console_scripts', 'bench')()
  File "/home/frappe/bench-repo/bench/cli.py", line 40, in cli
  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
  File "/home/frappe/bench-repo/bench/patches/__init__.py", line 21, in run
    result = execute(bench_path)
  File "/home/frappe/bench-repo/bench/patches/v4/update_node.py", line 10, in execute
    result = subprocess.check_output([node_exec, '-v'])
  File "/usr/lib/python2.7/subprocess.py", line 573, in check_output
    raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command '['/usr/sbin/node', '-v']' returned non-zero exit status 1


Please add following code in /home/frappe/bench-repo/bench/patches/v4/update_node.py @ Line 10

  result = subprocess.check_output([node_exec, '-v'])`

So that we can better analyse the cause for failure of this patch.

Did you solve this? I am getting the same error.

I solved it by purging the node and reinstalling a nodejs 5.x…
but i got another issue

Please open new topic with error logs, screenshots, steps to reproduce issue, maybe someone will help you. closing this thread for now.