npm install --package-lock-only PACKAGENAME
This will update the dependencies in Gemfile.lock without installing them.
bundle lock --update