def update_package(package, local=False, npm='npm'):
 if local:
  run(('%(npm)s update -l %(package)s' % locals()))
 else:
  run_as_root(('HOME=/root %(npm)s update -g %(package)s' % locals()))

def update_package ( package , local = False , npm = 'npm' ) : if local : run ( ( '%(npm)s update -l %(package)s' % locals ( ) ) ) else : run_as_root ( ( 'HOME=/root %(npm)s update -g %(package)s' % locals ( ) ) )
update a node .