Node.js/yarn:修订间差异
来自康健生活
| 第166行: | 第166行: | ||
yarn set version latest</syntaxhighlight>|$|/home/kangkk}} | yarn set version latest</syntaxhighlight>|$|/home/kangkk}} | ||
== 版本升级 == | |||
从版本 1 升级到版本 4 | |||
{{shc|<syntaxhighlight lang="bash"> | |||
corepack enable \ | |||
&& corepack prepare yarn@4.9.2 --activate</syntaxhighlight>|$|/home/kwy}} | |||
== 插件 == | == 插件 == | ||
{{shc|<syntaxhighlight lang="bash"> | {{shc|<syntaxhighlight lang="bash"> | ||
yarn plugin import workspace-tools</syntaxhighlight>|$|/home/kangkk}} | yarn plugin import workspace-tools</syntaxhighlight>|$|/home/kangkk}} | ||
== workspaces == | == workspaces == | ||