From b36542e1cbb90134435f5333c46dd0dc89bb468f Mon Sep 17 00:00:00 2001 From: Mike Greiling Date: Tue, 14 Feb 2017 13:39:29 -0600 Subject: update migration docs for 8.17 to include minimum node version and yarn installation --- doc/update/8.16-to-8.17.md | 43 +++++++++++++++++++++++++++++++++++-------- 1 file changed, 35 insertions(+), 8 deletions(-) diff --git a/doc/update/8.16-to-8.17.md b/doc/update/8.16-to-8.17.md index 53c2bc560e8..a6b6817debc 100644 --- a/doc/update/8.16-to-8.17.md +++ b/doc/update/8.16-to-8.17.md @@ -49,7 +49,31 @@ Install Bundler: sudo gem install bundler --no-ri --no-rdoc ``` -### 4. Get latest code +### 4. Update Node and Install Yarn + +GitLab now runs [webpack](http://webpack.js.org) to compile frontend assets and +it has a minimum requirement of node v4.3.0. We are also replacing the use of +`npm` with `yarn` to install node modules going forward as it is faster and +less error prone. + +You can check which version you are running with `node -v`. + +If you are running a version older than `v4.3.0` you will should update to a +newer version. You can find instructions to install from community maintained +packages or compile from source at the nodejs.org website. + + + + +Install Yarn: + +If you do not have yarn installed, you will need to install this as well. +Instructions to compile from source or install from a package repository can be +found on yarnpkg.com: + + + +### 5. Get latest code ```bash cd /home/git/gitlab @@ -76,7 +100,7 @@ cd /home/git/gitlab sudo -u git -H git checkout 8-17-stable-ee ``` -### 5. Install libs, migrations, etc. +### 6. Install libs, migrations, etc. ```bash cd /home/git/gitlab @@ -93,13 +117,16 @@ sudo -u git -H bundle clean # Run database migrations sudo -u git -H bundle exec rake db:migrate RAILS_ENV=production +# Install/update frontend asset dependencies +sudo -u git -H yarn install + # Clean up assets and cache -sudo -u git -H bundle exec rake assets:clean assets:precompile cache:clear RAILS_ENV=production +sudo -u git -H bundle exec rake gitlab:assets:clean gitlab:assets:compile cache:clear RAILS_ENV=production ``` **MySQL installations**: Run through the `MySQL strings limits` and `Tables and data conversion to utf8mb4` [tasks](../install/database_mysql.md). -### 6. Update gitlab-workhorse +### 7. Update gitlab-workhorse Install and compile gitlab-workhorse. This requires [Go 1.5](https://golang.org/dl) which should already be on your system from @@ -111,7 +138,7 @@ cd /home/git/gitlab sudo -u git -H bundle exec rake "gitlab:workhorse:install[/home/git/gitlab-workhorse]" RAILS_ENV=production ``` -### 7. Update gitlab-shell +### 8. Update gitlab-shell ```bash cd /home/git/gitlab-shell @@ -120,7 +147,7 @@ sudo -u git -H git fetch --all --tags sudo -u git -H git checkout v4.1.1 ``` -### 8. Update configuration files +### 9. Update configuration files #### New configuration options for `gitlab.yml` @@ -194,14 +221,14 @@ For Ubuntu 16.04.1 LTS: sudo systemctl daemon-reload ``` -### 9. Start application +### 10. Start application ```bash sudo service gitlab start sudo service nginx restart ``` -### 10. Check application status +### 11. Check application status Check if GitLab and its environment are configured correctly: -- cgit v1.2.1 From e65298794725e5df22d7e1fdfee62fbc49c44857 Mon Sep 17 00:00:00 2001 From: Mike Greiling Date: Wed, 15 Feb 2017 14:18:21 -0600 Subject: ensure rake tasks produce helpful error messages for node dependency issues --- lib/tasks/eslint.rake | 7 ++++--- lib/tasks/gitlab/assets.rake | 22 +++++++++++----------- lib/tasks/karma.rake | 9 ++------- lib/tasks/yarn.rake | 40 ++++++++++++++++++++++++++++++++++++++++ 4 files changed, 57 insertions(+), 21 deletions(-) create mode 100644 lib/tasks/yarn.rake diff --git a/lib/tasks/eslint.rake b/lib/tasks/eslint.rake index 2514b050695..d440085696d 100644 --- a/lib/tasks/eslint.rake +++ b/lib/tasks/eslint.rake @@ -1,7 +1,8 @@ unless Rails.env.production? desc "GitLab | Run ESLint" - task :eslint do - system("yarn", "run", "eslint") + task eslint: ['yarn:check'] do + sh "yarn run eslint" do |ok, res| + abort('rake eslint failed') unless ok + end end end - diff --git a/lib/tasks/gitlab/assets.rake b/lib/tasks/gitlab/assets.rake index b6ef8260191..3eb5fc07b3c 100644 --- a/lib/tasks/gitlab/assets.rake +++ b/lib/tasks/gitlab/assets.rake @@ -1,21 +1,21 @@ namespace :gitlab do namespace :assets do desc 'GitLab | Assets | Compile all frontend assets' - task :compile do - Rake::Task['assets:precompile'].invoke - Rake::Task['webpack:compile'].invoke - Rake::Task['gitlab:assets:fix_urls'].invoke - end + task compile: [ + 'yarn:check', + 'assets:precompile', + 'webpack:compile', + 'gitlab:assets:fix_urls' + ] desc 'GitLab | Assets | Clean up old compiled frontend assets' - task :clean do - Rake::Task['assets:clean'].invoke - end + task clean: ['assets:clean'] desc 'GitLab | Assets | Remove all compiled frontend assets' - task :purge do - Rake::Task['assets:clobber'].invoke - end + task purge: ['assets:clobber'] + + desc 'GitLab | Assets | Uninstall frontend dependencies' + task purge_modules: ['yarn:clobber'] desc 'GitLab | Assets | Fix all absolute url references in CSS' task :fix_urls do diff --git a/lib/tasks/karma.rake b/lib/tasks/karma.rake index 35cfed9dc75..40465ea3bf0 100644 --- a/lib/tasks/karma.rake +++ b/lib/tasks/karma.rake @@ -1,6 +1,4 @@ unless Rails.env.production? - Rake::Task['karma'].clear if Rake::Task.task_defined?('karma') - namespace :karma do desc 'GitLab | Karma | Generate fixtures for JavaScript tests' RSpec::Core::RakeTask.new(:fixtures) do |t| @@ -10,7 +8,7 @@ unless Rails.env.production? end desc 'GitLab | Karma | Run JavaScript tests' - task :tests do + task tests: ['yarn:check'] do sh "yarn run karma" do |ok, res| abort('rake karma:tests failed') unless ok end @@ -18,8 +16,5 @@ unless Rails.env.production? end desc 'GitLab | Karma | Shortcut for karma:fixtures and karma:tests' - task :karma do - Rake::Task['karma:fixtures'].invoke - Rake::Task['karma:tests'].invoke - end + task karma: ['karma:fixtures', 'karma:tests'] end diff --git a/lib/tasks/yarn.rake b/lib/tasks/yarn.rake new file mode 100644 index 00000000000..351f6887f7b --- /dev/null +++ b/lib/tasks/yarn.rake @@ -0,0 +1,40 @@ + +namespace :yarn do + desc 'Ensure Yarn is installed' + task :available do + unless system('yarn --version', out: File::NULL) + warn( + 'Error: Yarn executable was not detected in the system.'.color(:red), + 'Download Yarn at https://yarnpkg.com/en/docs/install'.color(:green) + ) + abort + end + end + + desc 'Ensure Node dependencies are installed' + task check: ['yarn:available'] do + unless system('yarn check --ignore-engines', out: File::NULL) + warn( + 'Error: You have unmet dependencies. (`yarn check` command failed)'.color(:red), + 'Run `yarn install` to install missing modules.'.color(:green) + ) + abort + end + end + + desc 'Install Node dependencies with Yarn' + task install: ['yarn:available'] do + unless system('yarn install --force --pure-lockfile --ignore-engines') + abort 'Error: Unable to install node modules.'.color(:red) + end + end + + desc 'Remove Node dependencies' + task :clobber do + warn 'Purging ./node_modules directory'.color(:red) + FileUtils.rm_rf 'node_modules' + end +end + +desc 'Install Node dependencies with Yarn' +task yarn: ['yarn:install'] -- cgit v1.2.1 From d21e54c0ce68412be3de130265a61493c44bda14 Mon Sep 17 00:00:00 2001 From: Mike Greiling Date: Wed, 15 Feb 2017 16:03:50 -0600 Subject: simplify eslint rake task --- lib/tasks/eslint.rake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tasks/eslint.rake b/lib/tasks/eslint.rake index d440085696d..51f5d768102 100644 --- a/lib/tasks/eslint.rake +++ b/lib/tasks/eslint.rake @@ -1,8 +1,8 @@ unless Rails.env.production? desc "GitLab | Run ESLint" task eslint: ['yarn:check'] do - sh "yarn run eslint" do |ok, res| - abort('rake eslint failed') unless ok + unless system('yarn run eslint') + abort('rake eslint failed') end end end -- cgit v1.2.1 -- cgit v1.2.1 From 108e36e230b17e84bb69481f7ccf90ba1f36e615 Mon Sep 17 00:00:00 2001 From: Mike Greiling Date: Wed, 15 Feb 2017 17:37:47 -0600 Subject: update install from source directions to mention nodejs and yarn requirements --- doc/install/installation.md | 29 +++++++++++++++++++++++------ 1 file changed, 23 insertions(+), 6 deletions(-) diff --git a/doc/install/installation.md b/doc/install/installation.md index 0f07085942a..54ccd9b478a 100644 --- a/doc/install/installation.md +++ b/doc/install/installation.md @@ -39,6 +39,7 @@ The GitLab installation consists of setting up the following components: 1. Packages / Dependencies 1. Ruby 1. Go +1. Node 1. System Users 1. Database 1. Redis @@ -63,7 +64,7 @@ up-to-date and install it. Install the required packages (needed to compile Ruby and native extensions to Ruby gems): - sudo apt-get install -y build-essential zlib1g-dev libyaml-dev libssl-dev libgdbm-dev libreadline-dev libncurses5-dev libffi-dev curl openssh-server checkinstall libxml2-dev libxslt-dev libcurl4-openssl-dev libicu-dev logrotate python-docutils pkg-config cmake nodejs + sudo apt-get install -y build-essential zlib1g-dev libyaml-dev libssl-dev libgdbm-dev libreadline-dev libncurses5-dev libffi-dev curl openssh-server checkinstall libxml2-dev libxslt-dev libcurl4-openssl-dev libicu-dev logrotate python-docutils pkg-config cmake If you want to use Kerberos for user authentication, then install libkrb5-dev: @@ -151,13 +152,29 @@ page](https://golang.org/dl). sudo ln -sf /usr/local/go/bin/{go,godoc,gofmt} /usr/local/bin/ rm go1.5.3.linux-amd64.tar.gz -## 4. System Users +## 4. Node + +Since GitLab 8.17, GitLab requires the use of node >= v4.3.0 to compile +javascript assets and yarn >= v0.17.0 to manage javascript dependencies. In +many distros the versions provided by the official package repositories are +out of date, so we'll need to install through the following commands: + + # install node v7.x + curl --location https://deb.nodesource.com/setup_7.x | bash - + sudo apt-get install -y nodejs + + # install yarn + curl --location https://yarnpkg.com/install.sh | bash - + +Visit the official websites for [node](https://nodejs.org/en/download/package-manager/) and [yarn](https://yarnpkg.com/en/docs/install/) if you have any trouble with this step. + +## 5. System Users Create a `git` user for GitLab: sudo adduser --disabled-login --gecos 'GitLab' git -## 5. Database +## 6. Database We recommend using a PostgreSQL database. For MySQL check the [MySQL setup guide](database_mysql.md). @@ -218,7 +235,7 @@ We recommend using a PostgreSQL database. For MySQL check the gitlabhq_production> \q ``` -## 6. Redis +## 7. Redis GitLab requires at least Redis 2.8. @@ -263,7 +280,7 @@ sudo service redis-server restart sudo usermod -aG redis git ``` -## 7. GitLab +## 8. GitLab # We'll install GitLab into home directory of the user "git" cd /home/git @@ -459,7 +476,7 @@ Check if GitLab and its environment are configured correctly: # or sudo /etc/init.d/gitlab restart -## 8. Nginx +## 9. Nginx **Note:** Nginx is the officially supported web server for GitLab. If you cannot or do not want to use Nginx as your web server, have a look at the [GitLab recipes](https://gitlab.com/gitlab-org/gitlab-recipes/). -- cgit v1.2.1 From 2b008c6ae557a47591bca2bea0efaa86ed969b81 Mon Sep 17 00:00:00 2001 From: Mike Greiling Date: Wed, 15 Feb 2017 17:47:25 -0600 Subject: update rake command for assets compilation --- doc/install/installation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/install/installation.md b/doc/install/installation.md index 54ccd9b478a..7b33031f9c0 100644 --- a/doc/install/installation.md +++ b/doc/install/installation.md @@ -468,7 +468,7 @@ Check if GitLab and its environment are configured correctly: ### Compile Assets - sudo -u git -H bundle exec rake gitlab:assets:compile RAILS_ENV=production + sudo -u git -H bundle exec rake gitlab:assets:compile RAILS_ENV=production NODE_ENV=production ### Start Your GitLab Instance -- cgit v1.2.1 From cc9859fccd03b39579bd572e9d04c668dd47b3ec Mon Sep 17 00:00:00 2001 From: Mike Greiling Date: Thu, 16 Feb 2017 00:17:24 -0600 Subject: update yarn command --- doc/update/8.16-to-8.17.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/update/8.16-to-8.17.md b/doc/update/8.16-to-8.17.md index a6b6817debc..f2369403487 100644 --- a/doc/update/8.16-to-8.17.md +++ b/doc/update/8.16-to-8.17.md @@ -118,7 +118,7 @@ sudo -u git -H bundle clean sudo -u git -H bundle exec rake db:migrate RAILS_ENV=production # Install/update frontend asset dependencies -sudo -u git -H yarn install +sudo -u git -H yarn install --force --pure-lockfile # Clean up assets and cache sudo -u git -H bundle exec rake gitlab:assets:clean gitlab:assets:compile cache:clear RAILS_ENV=production -- cgit v1.2.1 From 9b885e92f31a8756a4e0e221dddb9625d0e76bce Mon Sep 17 00:00:00 2001 From: Mike Greiling Date: Thu, 16 Feb 2017 00:17:51 -0600 Subject: add yarn command to install from source instructions --- doc/install/installation.md | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/install/installation.md b/doc/install/installation.md index 7b33031f9c0..ae6c2626002 100644 --- a/doc/install/installation.md +++ b/doc/install/installation.md @@ -468,6 +468,7 @@ Check if GitLab and its environment are configured correctly: ### Compile Assets + sudo -u git -H yarn install --force --pure-lockfile sudo -u git -H bundle exec rake gitlab:assets:compile RAILS_ENV=production NODE_ENV=production ### Start Your GitLab Instance -- cgit v1.2.1 From eca18c0bd108033d1e852b2ce8010ee01c259528 Mon Sep 17 00:00:00 2001 From: Mike Greiling Date: Thu, 16 Feb 2017 00:20:42 -0600 Subject: add yarn:install to upgrader script --- lib/gitlab/upgrader.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gitlab/upgrader.rb b/lib/gitlab/upgrader.rb index e78d0c34a02..632f663094c 100644 --- a/lib/gitlab/upgrader.rb +++ b/lib/gitlab/upgrader.rb @@ -61,7 +61,7 @@ module Gitlab "Switch to new version" => %W(#{Gitlab.config.git.bin_path} checkout v#{latest_version}), "Install gems" => %W(bundle), "Migrate DB" => %W(bundle exec rake db:migrate), - "Recompile assets" => %W(bundle exec rake gitlab:assets:clean gitlab:assets:compile), + "Recompile assets" => %W(bundle exec rake yarn:install gitlab:assets:clean gitlab:assets:compile), "Clear cache" => %W(bundle exec rake cache:clear) } end -- cgit v1.2.1 From 2f0d0b510d6542dc3a2758d5664e19f0b5b3c603 Mon Sep 17 00:00:00 2001 From: Mike Greiling Date: Thu, 16 Feb 2017 01:04:08 -0600 Subject: do not use --force command argument for yarn --- doc/install/installation.md | 2 +- doc/update/8.16-to-8.17.md | 2 +- lib/tasks/yarn.rake | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/install/installation.md b/doc/install/installation.md index ae6c2626002..f77e1652ac2 100644 --- a/doc/install/installation.md +++ b/doc/install/installation.md @@ -468,7 +468,7 @@ Check if GitLab and its environment are configured correctly: ### Compile Assets - sudo -u git -H yarn install --force --pure-lockfile + sudo -u git -H yarn install --production --pure-lockfile sudo -u git -H bundle exec rake gitlab:assets:compile RAILS_ENV=production NODE_ENV=production ### Start Your GitLab Instance diff --git a/doc/update/8.16-to-8.17.md b/doc/update/8.16-to-8.17.md index f2369403487..98574d2067b 100644 --- a/doc/update/8.16-to-8.17.md +++ b/doc/update/8.16-to-8.17.md @@ -118,7 +118,7 @@ sudo -u git -H bundle clean sudo -u git -H bundle exec rake db:migrate RAILS_ENV=production # Install/update frontend asset dependencies -sudo -u git -H yarn install --force --pure-lockfile +sudo -u git -H yarn install --production --pure-lockfile # Clean up assets and cache sudo -u git -H bundle exec rake gitlab:assets:clean gitlab:assets:compile cache:clear RAILS_ENV=production diff --git a/lib/tasks/yarn.rake b/lib/tasks/yarn.rake index 351f6887f7b..2ac88a039e7 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 --force --pure-lockfile --ignore-engines') + unless system('yarn install --pure-lockfile --ignore-engines') abort 'Error: Unable to install node modules.'.color(:red) end end -- cgit v1.2.1 From cda34805daebd0f868936f8e3feee9db55073b6b Mon Sep 17 00:00:00 2001 From: Mike Greiling Date: Thu, 16 Feb 2017 01:05:31 -0600 Subject: use NODE_ENV=production when compiling assets in upgrader script --- lib/gitlab/upgrader.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/gitlab/upgrader.rb b/lib/gitlab/upgrader.rb index 632f663094c..4cc34e34460 100644 --- a/lib/gitlab/upgrader.rb +++ b/lib/gitlab/upgrader.rb @@ -67,7 +67,10 @@ module Gitlab end def env - { 'RAILS_ENV' => 'production' } + { + 'RAILS_ENV' => 'production', + 'NODE_ENV' => 'production' + } end def upgrade -- cgit v1.2.1 From 9b86fba5d92d4106105e3b56dc40122250c398c1 Mon Sep 17 00:00:00 2001 From: Mike Greiling Date: Thu, 16 Feb 2017 13:40:55 -0600 Subject: revert changes to 8.17 update docs since yarn is now set for 9.0 --- doc/update/8.16-to-8.17.md | 43 ++++++++----------------------------------- 1 file changed, 8 insertions(+), 35 deletions(-) diff --git a/doc/update/8.16-to-8.17.md b/doc/update/8.16-to-8.17.md index 98574d2067b..53c2bc560e8 100644 --- a/doc/update/8.16-to-8.17.md +++ b/doc/update/8.16-to-8.17.md @@ -49,31 +49,7 @@ Install Bundler: sudo gem install bundler --no-ri --no-rdoc ``` -### 4. Update Node and Install Yarn - -GitLab now runs [webpack](http://webpack.js.org) to compile frontend assets and -it has a minimum requirement of node v4.3.0. We are also replacing the use of -`npm` with `yarn` to install node modules going forward as it is faster and -less error prone. - -You can check which version you are running with `node -v`. - -If you are running a version older than `v4.3.0` you will should update to a -newer version. You can find instructions to install from community maintained -packages or compile from source at the nodejs.org website. - - - - -Install Yarn: - -If you do not have yarn installed, you will need to install this as well. -Instructions to compile from source or install from a package repository can be -found on yarnpkg.com: - - - -### 5. Get latest code +### 4. Get latest code ```bash cd /home/git/gitlab @@ -100,7 +76,7 @@ cd /home/git/gitlab sudo -u git -H git checkout 8-17-stable-ee ``` -### 6. Install libs, migrations, etc. +### 5. Install libs, migrations, etc. ```bash cd /home/git/gitlab @@ -117,16 +93,13 @@ sudo -u git -H bundle clean # Run database migrations sudo -u git -H bundle exec rake db:migrate RAILS_ENV=production -# Install/update frontend asset dependencies -sudo -u git -H yarn install --production --pure-lockfile - # Clean up assets and cache -sudo -u git -H bundle exec rake gitlab:assets:clean gitlab:assets:compile cache:clear RAILS_ENV=production +sudo -u git -H bundle exec rake assets:clean assets:precompile cache:clear RAILS_ENV=production ``` **MySQL installations**: Run through the `MySQL strings limits` and `Tables and data conversion to utf8mb4` [tasks](../install/database_mysql.md). -### 7. Update gitlab-workhorse +### 6. Update gitlab-workhorse Install and compile gitlab-workhorse. This requires [Go 1.5](https://golang.org/dl) which should already be on your system from @@ -138,7 +111,7 @@ cd /home/git/gitlab sudo -u git -H bundle exec rake "gitlab:workhorse:install[/home/git/gitlab-workhorse]" RAILS_ENV=production ``` -### 8. Update gitlab-shell +### 7. Update gitlab-shell ```bash cd /home/git/gitlab-shell @@ -147,7 +120,7 @@ sudo -u git -H git fetch --all --tags sudo -u git -H git checkout v4.1.1 ``` -### 9. Update configuration files +### 8. Update configuration files #### New configuration options for `gitlab.yml` @@ -221,14 +194,14 @@ For Ubuntu 16.04.1 LTS: sudo systemctl daemon-reload ``` -### 10. Start application +### 9. Start application ```bash sudo service gitlab start sudo service nginx restart ``` -### 11. Check application status +### 10. Check application status Check if GitLab and its environment are configured correctly: -- cgit v1.2.1 From 2df39e9dc862ddfbb9de9cb4dbc5342628c092b7 Mon Sep 17 00:00:00 2001 From: Mike Greiling Date: Thu, 16 Feb 2017 16:22:43 -0600 Subject: add CHANGELOG.md entry for !9316 --- changelogs/unreleased/add-yarn-documentation.yml | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 changelogs/unreleased/add-yarn-documentation.yml diff --git a/changelogs/unreleased/add-yarn-documentation.yml b/changelogs/unreleased/add-yarn-documentation.yml new file mode 100644 index 00000000000..5bcc01ac177 --- /dev/null +++ b/changelogs/unreleased/add-yarn-documentation.yml @@ -0,0 +1,4 @@ +--- +title: add rake tasks to handle yarn dependencies and update documentation +merge_request: 9316 +author: -- cgit v1.2.1 From 5da4261865a699f2f52a32f196ddbf914bf87c89 Mon Sep 17 00:00:00 2001 From: Mike Greiling Date: Fri, 17 Feb 2017 11:07:41 -0600 Subject: pluralize "this step" --- doc/install/installation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/install/installation.md b/doc/install/installation.md index f77e1652ac2..d844140a678 100644 --- a/doc/install/installation.md +++ b/doc/install/installation.md @@ -166,7 +166,7 @@ out of date, so we'll need to install through the following commands: # install yarn curl --location https://yarnpkg.com/install.sh | bash - -Visit the official websites for [node](https://nodejs.org/en/download/package-manager/) and [yarn](https://yarnpkg.com/en/docs/install/) if you have any trouble with this step. +Visit the official websites for [node](https://nodejs.org/en/download/package-manager/) and [yarn](https://yarnpkg.com/en/docs/install/) if you have any trouble with these steps. ## 5. System Users -- cgit v1.2.1 From c77b68d627f9f8e8eaacd61bc352aadf0b904c16 Mon Sep 17 00:00:00 2001 From: Mike Greiling Date: Fri, 17 Feb 2017 11:10:02 -0600 Subject: correct gitlab version that started requiring yarn --- doc/install/installation.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/install/installation.md b/doc/install/installation.md index d844140a678..5ba338ba7d1 100644 --- a/doc/install/installation.md +++ b/doc/install/installation.md @@ -155,9 +155,10 @@ page](https://golang.org/dl). ## 4. Node Since GitLab 8.17, GitLab requires the use of node >= v4.3.0 to compile -javascript assets and yarn >= v0.17.0 to manage javascript dependencies. In -many distros the versions provided by the official package repositories are -out of date, so we'll need to install through the following commands: +javascript assets, and starting in GitLab 9.0, yarn >= v0.17.0 is required to +manage javascript dependencies. In many distros the versions provided by the +official package repositories are out of date, so we'll need to install through +the following commands: # install node v7.x curl --location https://deb.nodesource.com/setup_7.x | bash - -- cgit v1.2.1