summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLukas Eipert <leipert@gitlab.com>2019-07-02 16:29:47 +0200
committerLukas Eipert <leipert@gitlab.com>2019-07-02 16:29:47 +0200
commitd5842e7490a6826bbaaaa7c76c967a48e96dd1ef (patch)
tree315f8287bcc3ede52c001b0766b361b554b24e09 /lib
parente07ebe66af957c46e7c69329b3ab561bb539351b (diff)
downloadgitlab-ce-d5842e7490a6826bbaaaa7c76c967a48e96dd1ef.tar.gz
Prefer offline install for yarn
Diffstat (limited to 'lib')
-rw-r--r--lib/tasks/yarn.rake2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tasks/yarn.rake b/lib/tasks/yarn.rake
index 2ac88a039e7..32061ad4a57 100644
--- a/lib/tasks/yarn.rake
+++ b/lib/tasks/yarn.rake
@@ -24,7 +24,7 @@ namespace :yarn do
desc 'Install Node dependencies with Yarn'
task install: ['yarn:available'] do
- unless system('yarn install --pure-lockfile --ignore-engines')
+ unless system('yarn install --pure-lockfile --ignore-engines --prefer-offline')
abort 'Error: Unable to install node modules.'.color(:red)
end
end