Skip to content

Commit 3c44288

Browse files
dawnmistSimenB
authored andcommitted
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.
1 parent c3baf84 commit 3c44288

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/BestPractices.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ ENV YARN_VERSION 1.5.1
4040

4141
RUN curl -fSLO --compressed "https://yarnpkg.com/downloads/$YARN_VERSION/yarn-v$YARN_VERSION.tar.gz" \
4242
&& tar -xzf yarn-v$YARN_VERSION.tar.gz -C /opt/ \
43-
&& ln -snf /opt/yarn-v$YARN_VERSION /opt/yarn \
43+
&& ln -snf /opt/yarn-v$YARN_VERSION/bin/yarn /usr/local/bin/yarn \
44+
&& ln -snf /opt/yarn-v$YARN_VERSION/bin/yarnpkg /usr/local/bin/yarnpkg \
4445
&& rm yarn-v$YARN_VERSION.tar.gz
4546
```
4647

0 commit comments

Comments
 (0)