admin管理员组文章数量:1401645
What command can I run to change all the versions in my package.json
to be the exact installed versions mentioned in the yarn.lock
?
My package.json
has unlocked versions like "^3". It has lines like:
"dependencies": {
"next": "15.2.3",
"react": "^19.0.0",
"react-dom": "^19.0.0"
},
"devDependencies": {
"@chromatic-com/storybook": "^3",
"eslint": "9.17.0",
"storybook": "^8.6.8",
"tailwindcss": "^4",
"typescript": "^5"
},
I thought I'd be able to run something like yarn upgrade --exact
or yarn install --exact
, but those were wrong.
I didn't see the answer at How can I update each dependency in package.json to the latest version?
本文标签: yarnpkgHow to automatically change allpackagejson dependencies to be exactStack Overflow
版权声明:本文标题:yarnpkg - How to automatically change all ^ package.json dependencies to be exact? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744314820a2600208.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论