Node.js/yarn/配置文件:修订间差异
来自康健生活
创建页面,内容为“== .yarnrc.yml == {{hc|head=.yarnrc.yml|output=<syntaxhighlight lang="bash"> # httpProxy: "http://192.168.51.34:808" # httpsProxy: "http://192.168.51.34:808" # nodeLinker: node-modules npmAlwaysAuth: true npmAuthToken: ODE5NTA0NDc5ZWE3NTc0YWQ2ZjFlNTZkODE1NmY5MDU6YjNmNmNjOWRmMzliY2IxNzQ2NGVmY2ExMDZjYWQw npmRegistryServer: "http://192.168.51.38:4873/" unsafeHttpWhitelist: - 192.168.51.38 </syntaxhighlight>}}” |
|||
| (未显示同一用户的3个中间版本) | |||
| 第5行: | 第5行: | ||
# nodeLinker: node-modules | # nodeLinker: node-modules | ||
npmAlwaysAuth: true | npmAlwaysAuth: true | ||
npmAuthToken: | npmAuthToken: <npmAuthToken> | ||
npmRegistryServer: "http://192.168.51.38:4873/" | npmRegistryServer: "http://192.168.51.38:4873/" | ||
unsafeHttpWhitelist: | unsafeHttpWhitelist: | ||
- 192.168.51.38 | - 192.168.51.38 | ||
# 设置 yarn 路径 | |||
# yarnPath: .yarn/releases/yarn-1.22.19.cjs | |||
</syntaxhighlight>}} | |||
== .yarnrc == | |||
{{hc|head=.yarnrc|output=<syntaxhighlight lang="bash"> | |||
# 设置 yarn 路径 | |||
# yarn-path ".yarn/releases/yarn-1.22.5.cjs" | |||
</syntaxhighlight>}} | </syntaxhighlight>}} | ||