diff --git a/bin/update b/bin/update index 0ec854a..3a68252 100755 --- a/bin/update +++ b/bin/update @@ -263,11 +263,7 @@ update-npm() { start_npm_update=`date +%s` echo -e "\033[32;1m=== Updating node packages ===\033[0m" - - for package in $(npm -g outdated --parseable --depth=0 | cut -d: -f3) - do - npm install -g `echo $package | cut -d '@' -f 1` - done + npm update -g seconds=$((`date +%s` - $start_npm_update )) formatted=`date -ud "@$seconds" +'%H hours %M minutes %S seconds'`