Sometimes, when working with tutorials, I just want to update all of the project depedencies, so this how I do it.
node -p "const json=require('./package.json');const depedencies=Object.keys(json.dependencies).reduce((prev,item)=>`${prev} ${item}@latest`,''); require('child_process').exec(`npm install ${depedencies}`)