当前位置: 首页 > 文档资料 > Yarn 中文文档 >

yarn bin

优质
小牛编辑
132浏览
2023-12-01

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