example:
yarn upgrade
yarn upgrade left-pad
yarn upgrade left-pad@^1.0.0
yarn upgrade left-pad grunt
yarn upgrade @angular
more refer here
更新20220324:
yarn upgrade left-pad -T
使用 -T 参数也可以更新到最新版,效果同
yarn upgrade left-pad --latest
,
但package.json中的显示 为 "left-pad": ~1.0.0
网友评论