@Azevedo are you looking for something like this:
jq -r '.dependencies | keys[] as $k | "\($k)@\(.[$k])"' < ~/package.json | xargs npm install -g
?