Node.js/yarn:修订间差异

来自康健生活
Kangkk​(留言 | 贡献)
Kangkk​(留言 | 贡献)
第80行: 第80行:
yarn config set npmRegistryServer http://npm.xxx.com</syntaxhighlight>|$|/home/kangkk}}
yarn config set npmRegistryServer http://npm.xxx.com</syntaxhighlight>|$|/home/kangkk}}
=== nodeLinker ===
=== nodeLinker ===
仍然使用 <code>node-modules</code> 文件夹。
默认值是 pnp,仍然使用 <code>node-modules</code> 文件夹。
{{shc|<syntaxhighlight lang="bash">
{{shc|<syntaxhighlight lang="bash">
yarn config set nodeLinker node-modules</syntaxhighlight>|$|/home/kangkk}}
yarn config set nodeLinker node-modules</syntaxhighlight>|$|/home/kangkk}}