Skip to content

Commit 44045f8

Browse files
author
Alexandre Thomas
committed
Fix a bug that prevents yarn from installing
1 parent 3f157a3 commit 44045f8

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

docker-compose.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ services:
3636
ports:
3737
- "2222:22"
3838
tty: true
39+
environment:
40+
- PATH=$PATH:$HOME/.yarn/bin:/var/www/vendor/bin:$HOME/.nvm/versions/node/v7.1.0/bin
3941

4042
### PHP-FPM Container #######################################
4143

workspace/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ ARG INSTALL_YARN=false
191191
ENV INSTALL_YARN ${INSTALL_YARN}
192192

193193
RUN if [ ${INSTALL_YARN} = true ]; then \
194+
export PATH=$PATH:/home/laradock/.nvm/versions/node/v7.1.0/bin && \
194195
curl -o- -L https://yarnpkg.com/install.sh | bash && \
195196
echo "" >> ~/.bashrc && \
196197
echo 'export PATH="$HOME/.yarn/bin:$PATH"' >> ~/.bashrc \

0 commit comments

Comments
 (0)