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.
This commit is contained in:
Janeene Beeforth 2018-04-30 20:23:03 +10:00 committed by Simen Bekkhus
parent c3baf8491e
commit 3c44288786
1 changed files with 2 additions and 1 deletions

View File

@ -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
```