-
添加一个依赖
yarn add [package] yarn add [package]@[version] yarn add [package]@[tag]
-
更新一个依赖
yarn upgrade [package] yarn upgrade [package]@[version] yarn upgrade [package]@[tag]
-
移除一个依赖
yarn remove [package]
查看registry
<pre class="lang:default decode:true">yarn config get registry</pre>
参考链接