From 3c442887867d89b4c816cda9a7d7f84dc11a65bd Mon Sep 17 00:00:00 2001 From: Janeene Beeforth Date: Mon, 30 Apr 2018 20:23:03 +1000 Subject: [PATCH] Update "Upgrading/downgrading Yarn" guide in BestPractices doc (#708) Update documentation on installing a custom yarn version to specify that the /usr/local/bin/yarn* links need updating. --- docs/BestPractices.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/BestPractices.md b/docs/BestPractices.md index d77f37cb..f543d8e5 100644 --- a/docs/BestPractices.md +++ b/docs/BestPractices.md @@ -40,7 +40,8 @@ ENV YARN_VERSION 1.5.1 RUN curl -fSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz" \ && tar -xzf yarn-v$YARN_VERSION.tar.gz -C /opt/ \ - && ln -snf /opt/yarn-v$YARN_VERSION /opt/yarn \ + && ln -snf /opt/yarn-v$YARN_VERSION/bin/yarn /usr/local/bin/yarn \ + && ln -snf /opt/yarn-v$YARN_VERSION/bin/yarnpkg /usr/local/bin/yarnpkg \ && rm yarn-v$YARN_VERSION.tar.gz ```