Update Windows 10 installation docs (#7647)

This commit is contained in:
rhymes 2020-05-01 19:49:44 +02:00 committed by GitHub
parent 195da03edf
commit e6f9841bca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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