@@ -28,7 +28,7 @@ On FreeBSD and OpenBSD, you may also need:
28
28
* libexecinfo (FreeBSD and OpenBSD only)
29
29
30
30
31
- ``` text
31
+ ``` console
32
32
$ ./configure
33
33
$ make
34
34
$ [sudo] make install
@@ -37,7 +37,7 @@ $ [sudo] make install
37
37
If your Python binary is in a non-standard location or has a
38
38
non-standard name, run the following instead:
39
39
40
- ``` text
40
+ ``` console
41
41
$ export PYTHON=/path/to/python
42
42
$ $PYTHON ./configure
43
43
$ make
@@ -46,13 +46,13 @@ $ [sudo] make install
46
46
47
47
To run the tests:
48
48
49
- ``` text
49
+ ``` console
50
50
$ make test
51
51
```
52
52
53
53
To run the native module tests:
54
54
55
- ``` text
55
+ ``` console
56
56
$ make test-addons
57
57
```
58
58
@@ -61,35 +61,35 @@ To run the npm test suite:
61
61
* note: to run the suite on node v4 or earlier you must first*
62
62
* run ` make install ` *
63
63
64
- ```
64
+ ``` console
65
65
$ make test-npm
66
66
```
67
67
68
68
To build the documentation:
69
69
70
70
This will build Node.js first (if necessary) and then use it to build the docs:
71
71
72
- ``` text
72
+ ``` console
73
73
$ make doc
74
74
```
75
75
76
76
If you have an existing Node.js you can build just the docs with:
77
77
78
- ``` text
78
+ ``` console
79
79
$ NODE=node make doc-only
80
80
```
81
81
82
82
(Where ` node ` is the path to your executable.)
83
83
84
84
To read the documentation:
85
85
86
- ``` text
86
+ ``` console
87
87
$ man doc/node.1
88
88
```
89
89
90
90
To test if Node.js was built correctly:
91
91
92
- ```
92
+ ``` console
93
93
$ node -e " console.log('Hello from Node.js ' + process.version)"
94
94
```
95
95
@@ -107,19 +107,19 @@ Prerequisites:
107
107
[ Git for Windows] ( http://git-scm.com/download/win ) includes Git Bash
108
108
and tools which can be included in the global ` PATH ` .
109
109
110
- ``` text
110
+ ``` console
111
111
> vcbuild nosign
112
112
```
113
113
114
114
To run the tests:
115
115
116
- ``` text
116
+ ``` console
117
117
> vcbuild test
118
118
```
119
119
120
120
To test if Node.js was built correctly:
121
121
122
- ``` text
122
+ ``` console
123
123
> Release\n ode -e " console.log('Hello from Node.js', process.version)"
124
124
```
125
125
@@ -136,7 +136,7 @@ Be sure you have downloaded and extracted [Android NDK]
136
136
(https://developer.android.com/tools/sdk/ndk/index.html )
137
137
before in a folder. Then run:
138
138
139
- ```
139
+ ``` console
140
140
$ ./android-configure /path/to/your/android-ndk
141
141
$ make
142
142
```
@@ -165,13 +165,13 @@ Node.js source does not include all locales.)
165
165
166
166
##### Unix / OS X:
167
167
168
- ``` text
168
+ ``` console
169
169
$ ./configure --with-intl=full-icu --download=all
170
170
```
171
171
172
172
##### Windows:
173
173
174
- ``` text
174
+ ``` console
175
175
> vcbuild full-icu download-all
176
176
```
177
177
@@ -182,19 +182,19 @@ The `Intl` object will not be available, nor some other APIs such as
182
182
183
183
##### Unix / OS X:
184
184
185
- ``` text
185
+ ``` console
186
186
$ ./configure --without-intl
187
187
```
188
188
189
189
##### Windows:
190
190
191
- ``` text
191
+ ``` console
192
192
> vcbuild without-intl
193
193
```
194
194
195
195
#### Use existing installed ICU (Unix / OS X only):
196
196
197
- ``` text
197
+ ``` console
198
198
$ pkg-config --modversion icu-i18n && ./configure --with-intl=system-icu
199
199
```
200
200
@@ -210,14 +210,18 @@ Download the file named something like `icu4c-**##.#**-src.tgz` (or
210
210
211
211
##### Unix / OS X
212
212
213
- ``` text
214
- # from an already-unpacked ICU:
213
+ From an already-unpacked ICU:
214
+ ``` console
215
215
$ ./configure --with-intl=[small-icu,full-icu] --with-icu-source=/path/to/icu
216
+ ```
216
217
217
- # from a local ICU tarball
218
+ From a local ICU tarball:
219
+ ``` console
218
220
$ ./configure --with-intl=[small-icu,full-icu] --with-icu-source=/path/to/icu.tgz
221
+ ```
219
222
220
- # from a tarball URL
223
+ From a tarball URL:
224
+ ``` console
221
225
$ ./configure --with-intl=full-icu --with-icu-source=http://url/to/icu.tgz
222
226
```
223
227
@@ -227,7 +231,7 @@ First unpack latest ICU to `deps/icu`
227
231
[ icu4c-** ##.#** -src.tgz] ( http://icu-project.org/download ) (or ` .zip ` )
228
232
as ` deps/icu ` (You'll have: ` deps/icu/source/... ` )
229
233
230
- ``` text
234
+ ``` console
231
235
> vcbuild full-icu
232
236
```
233
237
0 commit comments