Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
459 views
in Technique[技术] by (71.8m points)

npm - Yarn.lock does not update after upgrading dependency with yarn add?

I upgraded one of my packages by using npm i @pulumi/akamai@latest, and I see the updated devDependency in my project's package.json, with the code below.

"devDependencies": {
        "@pulumi/akamai": "^1.0.0",
         .....other dependencies
}

However my yarn.lock file is unchanged, with

"@pulumi/akamai@^0.1.0":
  version "0.1.0"
  resolved "https://registry.yarnpkg.com/@pulumi/akamai/-/akamai-0.1.0.tgz#e6eed04448670719fd4fbc3df06023c0b61b780b"
  integrity sha512-Zs44yZrULrBMEA3ezb/A4baVX3cNQlE2+yrBBR75SfkK1TmhqitarEWnM1/JOQ/z7EIJZJN8SdqE5hsvXf/ssA==
  dependencies:
    "@pulumi/pulumi" "^2.0.0

I've tried running yarn, yarn install, and yarn add @pulumi/akamai@latest, but none of these commands are updating my yarn.lock. How can I update the yarn.lock file?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...