Skip to content

yarn

在一个包中,使用 yarn link 命令将此包链接到全局后,其它地方可能还是获取不到其 bin 命令。需要将 bin 添加到环境变量中。

shell
# 获取 yarn 命令所在目录地址
# C:\Users\lukec\AppData\Local\Yarn\bin
yarn global bin

.yarnrc

与 npm 的 .npmrc 不一样,yarn 使用的是 .yarnrc 文件,其格式也稍微有点不同。

sh
registry "https://registry.npmmirror.com"
# 跨平台运行脚本
shell-emulator true

Released under the MIT License.