diff --git a/docs/installation/windows.md b/docs/installation/windows.md index e19dbeea2..05a3af49b 100644 --- a/docs/installation/windows.md +++ b/docs/installation/windows.md @@ -58,27 +58,29 @@ ruby -v ### Installing Rails -Since Rails ships with so many dependencies these days, we're going to need to -install a JavaScript runtime like NodeJS. This lets you use CoffeeScript and the -Asset Pipeline in Rails which combines and minifies your JavaScript to provide a -faster production environment. +As a pre-requisite to install Rails, we're going to need to install a JavaScript +runtime like Node.js. -To install NodeJS, we're going to add it using the official repository: +To install Node.js, we're going to add it using the official repository: ```shell -curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - +curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash - sudo apt-get install -y nodejs node -v npm -v ``` +Please refer to +[NodeSource installation instructions](https://github.com/nodesource/distributions#installation-instructions) +for further details. + If `npm -v` gives `Syntax error: word unexpected (expecting "in")`, restart the terminal and try again. And now, for rails itself: ```shell -gem install rails -v 5.2.3 +gem install rails -v 5.2.4.2 ``` Then run `rbenv rehash` to make the Rails executable available. Check it out by @@ -87,7 +89,6 @@ using `rails -v` command ```shell rbenv rehash rails -v -# Rails 5.2.3 ``` ### Yarn