yarnpkg/yarn

yarn doesn't add global packages bin/ to $PATH

Open

#5,353 建立於 2018年2月12日

在 GitHub 查看
 (18 留言) (14 反應) (0 負責人)JavaScript (2,731 fork)batch import
cat-bughelp wantedtriaged

倉庫指標

Star
 (41,514 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

What is the current behavior? yarn doesn't add the directory for commands of globally installed packages (~/.yarn/bin) to $PATH, hence these commands cannot be invoked after having them added using yarn.

What is the expected behavior? PATH is updated to include ~/.yarn/bin by yarn during initial installation or during global package installation so commands can be invoked without requiring extra changes to config/.bashrc.

Please mention your node.js, yarn and operating system version. node v9.2.0 yarn 1.3.2 WSL (Bash on Windows)

貢獻者指南