Skip to content

Commit cdef8b4

Browse files
committed
Add Webpacker dependencies to the getting started guide
Closes rails#38322.
1 parent 51d73fb commit cdef8b4

File tree

1 file changed

+37
-1
lines changed

1 file changed

+37
-1
lines changed

guides/source/getting_started.md

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,14 @@ your prompt will look something like `c:\source_code>`
7878
### Installing Rails
7979

8080
Before you install Rails, you should check to make sure that your system has the
81-
proper prerequisites installed. These include Ruby and SQLite3.
81+
proper prerequisites installed. These include:
82+
83+
* Ruby
84+
* SQLite3
85+
* Node.js
86+
* Yarn
87+
88+
#### Installing Ruby
8289

8390
Open up a command line prompt. On macOS open Terminal.app, on Windows choose
8491
"Run" from your Start menu and type 'cmd.exe'. Any commands prefaced with a
@@ -100,6 +107,8 @@ Operating Systems take a look at [ruby-lang.org](https://www.ruby-lang.org/en/do
100107
If you are working on Windows, you should also install the
101108
[Ruby Installer Development Kit](https://rubyinstaller.org/downloads/).
102109

110+
#### Installing SQLite3
111+
103112
You will also need an installation of the SQLite3 database.
104113
Many popular UNIX-like OSes ship with an acceptable version of SQLite3.
105114
On Windows, if you installed Rails through Rails Installer, you
@@ -113,6 +122,33 @@ $ sqlite3 --version
113122

114123
The program should report its version.
115124

125+
#### Installing Node.js and Yarn
126+
127+
Finally, you'll need Node.js and Yarn installed to manage your application's JavaScript.
128+
129+
Find the installation instructions at the [Node.js website](https://nodejs.org/en/download/) and
130+
verify it's installed correctly with the following command:
131+
132+
```bash
133+
$ node --version
134+
```
135+
136+
The version of your Node.js runtime should be printed out. Make sure it's greater
137+
than 8.16.0.
138+
139+
To install Yarn, follow the installation
140+
instructions at the [Yarn website](https://classic.yarnpkg.com/en/docs/install).
141+
142+
Running this command should print out Yarn version:
143+
144+
```bash
145+
$ yarn -v
146+
```
147+
148+
If it says something like "1.22.0", Yarn has been installed correctly.
149+
150+
#### Installing Rails
151+
116152
To install Rails, use the `gem install` command provided by RubyGems:
117153

118154
```bash

0 commit comments

Comments
 (0)