How to force yarn to override yarn.lock version and install latest?

Viewed 1053

I would like to keep all other package versions in tact, but upgrade one single package to the most recent version. How can I do that using yarn?

I know I can delete yarn.lock, and then run yarn install, but I think that will upgrade every package, which I don't want. I just want the most recent version of node-sass, and for that to override the version I have in yarn.lock.

How can this be done?

2 Answers

According to Yarn documentation:

yarn up [package]
yarn up [package]@[version]
yarn up [package]@[tag]

So, to upgrade node-sass, you should run:

yarn up node-sass
Related