重要通知: 此文档针对的是 Yarn 1 (Classic) 版本。
对于 Yarn 2+ 文档及迁移指南,请访问 yarnpkg.cn。

yarn bin

Displays the location of the yarn bin folder.

yarn bin [<executable>]
  • yarn bin will print the folder where yarn will install executable files for your package. An example of an executable may be a script that you have defined for your package that can be executed via yarn run.

Example:

$ yarn bin
/home/emillumine/Code/Funkwhale/funkwhale/front/node_modules/.bin
  • yarn bin <executable> will print the path to the executable file.

Example:

$ yarn bin gettext-compile
/home/emillumine/Code/Funkwhale/funkwhale/front/node_modules/.bin/gettext-compile