I discovered the contents of my yarn.lock file are as follows:
"@aws-sdk/client-dynamodb@^3.42.0":
version "3.145.0"
resolved "https://registry.yarnpkg.com/@aws-sdk/client-dynamodb/-/client-dynamodb-3.145.0.tgz#2a358e9cbb1176370488cc229d319934a6003d93"
integrity sha512-dvy1kRTKVBiHPVrZU8aYFaHMjfoJCQ71FrhWfk5lHhLylSkRSuiffVx026Dh18b3Ob6L8N17HRAYzGV3ogAZfA==
dependencies:
However, in my package.json file it shows:
"dependencies": {
"@aws-sdk/client-dynamodb": "^3.42.0",
}
After running yarn install
, why is the version number different in yarn.lock (3.145.0) compared to package.json (3.42.0)? I am aiming for consistency with the version number specified in package.json.
Here's what I've attempted so far without success:
- Deleting node_modules and then running
yarn install
. - Issuing the command
yarn cache clean
followed by step 1 above.