Node.js/yarn:修订间差异
来自康健生活
| 第79行: | 第79行: | ||
{{shc|<syntaxhighlight lang="bash"> | {{shc|<syntaxhighlight lang="bash"> | ||
yarn config set npmRegistryServer http://npm.xxx.com</syntaxhighlight>|$|/home/kangkk}} | yarn config set npmRegistryServer http://npm.xxx.com</syntaxhighlight>|$|/home/kangkk}} | ||
=== nodeLinker === | |||
仍然使用 <code>node-modules</code> 文件夹。 | |||
{{shc|<syntaxhighlight lang="bash"> | |||
yarn config set nodeLinker node-modules</syntaxhighlight>|$|/home/kangkk}} | |||
=== 私有镜像源 === | === 私有镜像源 === | ||
Token 可以在 <code>.npmrc</code> 文件中获取(需要通过 NPM 登录之后)。 | Token 可以在 <code>.npmrc</code> 文件中获取(需要通过 NPM 登录之后)。 | ||