I have a local dependency in package.json
of the form “pkg”: “file:../pkg”.
How can I convince yarn 1.3.2
to fetch the new content of the pkg to node_modules
?
If you want to update packages with yarn and update the package. json accordingly, Install syncyarnlock - yarn global add syncyarnlock. Update packages - yarn upgrade or yarn upgrade --latest.
If you pass yarn the --latest flag it will update the package. json. NOTE: this will not respect semver and will update to the latest version. Whatever that might be.
Installing Options There are many options for installing dependencies, including: Installing all dependencies: yarn or yarn install. Installing one and only one version of a package: yarn install --flat. Forcing a re-download of all packages: yarn install --force.
You can upgrade the dependencies with yarn upgrade
. If it takes too much time, you can upgrade just certain packages yarn upgrade pkg
in your case
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With