yarn add my-package
安装最新版本的my-package yarn add my-package@1.2.3
安装v1.2.3 您可以指定一个范围,例如在package.json中吗?
答案 0 :(得分:1)
是的
我不知道为什么它不是documented explicitly,但这可行:
yarn add express@^4.15.4
# wrote "express": "^4.15.4" to package.json
# actually installed v4.17.1, which is latest satisfactory version