@@ -78,7 +78,14 @@ your prompt will look something like `c:\source_code>`
78
78
### Installing Rails
79
79
80
80
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
82
89
83
90
Open up a command line prompt. On macOS open Terminal.app, on Windows choose
84
91
"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
100
107
If you are working on Windows, you should also install the
101
108
[ Ruby Installer Development Kit] ( https://rubyinstaller.org/downloads/ ) .
102
109
110
+ #### Installing SQLite3
111
+
103
112
You will also need an installation of the SQLite3 database.
104
113
Many popular UNIX-like OSes ship with an acceptable version of SQLite3.
105
114
On Windows, if you installed Rails through Rails Installer, you
@@ -113,6 +122,33 @@ $ sqlite3 --version
113
122
114
123
The program should report its version.
115
124
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
+
116
152
To install Rails, use the ` gem install ` command provided by RubyGems:
117
153
118
154
``` bash
0 commit comments