source: general/genlib/nodejs.xml@ 57141410

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 57141410 was 57141410, checked in by Douglas R. Reno <renodr@…>, 4 years ago

Update to Node.js-12.16.3

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@23048 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 7.6 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY nodejs-download-http "https://nodejs.org/dist/v&nodejs-version;/node-v&nodejs-version;.tar.xz">
8 <!ENTITY nodejs-download-ftp " ">
9 <!ENTITY nodejs-md5sum "3f23ba05c01f6f03170059057a7bd727">
10 <!ENTITY nodejs-size "23 MB">
11 <!ENTITY nodejs-buildsize "1.2 GB (add 21 MB for tests)">
12 <!ENTITY nodejs-time "9.4 SBU (using parallelism=4; add 2.6 SBU for tests)">
13 <!-- timing is significantly longer on a Ryzen -->
14 <!-- Size increases are due to using internal ICU -->
15]>
16
17<sect1 id="nodejs" xreflabel="nodejs-&nodejs-version;">
18 <?dbhtml filename="nodejs.html"?>
19
20 <sect1info>
21 <othername>$LastChangedBy$</othername>
22 <date>$Date$</date>
23 </sect1info>
24
25 <title>Node.js-&nodejs-version;</title>
26
27 <indexterm zone="nodejs">
28 <primary sortas="a-nodejs">nodejs</primary>
29 </indexterm>
30
31 <sect2 role="package">
32 <title>Introduction to Node.js</title>
33
34 <para>
35 <application>Node.js</application> is a
36 <application>JavaScript</application> runtime built on
37 <application>Chrome's</application> V8 JavaScript engine.
38 </para>
39
40 &lfs91_checked;
41
42 <bridgehead renderas="sect3">Package Information</bridgehead>
43 <itemizedlist spacing="compact">
44 <listitem>
45 <para>
46 Download (HTTP): <ulink url="&nodejs-download-http;"/>
47 </para>
48 </listitem>
49 <listitem>
50 <para>
51 Download (FTP): <ulink url="&nodejs-download-ftp;"/>
52 </para>
53 </listitem>
54 <listitem>
55 <para>
56 Download MD5 sum: &nodejs-md5sum;
57 </para>
58 </listitem>
59 <listitem>
60 <para>
61 Download size: &nodejs-size;
62 </para>
63 </listitem>
64 <listitem>
65 <para>
66 Estimated disk space required: &nodejs-buildsize;
67 </para>
68 </listitem>
69 <listitem>
70 <para>
71 Estimated build time: &nodejs-time;
72 </para>
73 </listitem>
74 </itemizedlist>
75
76<!--<note>
77 <para>
78 This tarball was created using a BSD version of
79 <application>tar</application> and extracting it with a linux&trade;
80 version will produce harmless warnings about unknown extended header
81 keywords.
82 </para>
83 </note>-->
84
85 <bridgehead renderas="sect3">Node.js Dependencies</bridgehead>
86
87 <bridgehead renderas="sect4">Required</bridgehead>
88 <para role="required">
89 <xref linkend="python2"/> and
90 <xref linkend="which"/>
91 </para>
92
93 <bridgehead renderas="sect4">Recommended</bridgehead>
94 <para role="recommended">
95 <xref linkend="c-ares"/>,
96 <xref linkend="icu"/>,
97 <xref linkend="libuv"/>, and
98 <xref linkend="nghttp2"/>
99 </para>
100
101 <bridgehead renderas="sect4">Optional</bridgehead>
102 <para role="optional">
103 <ulink url="https://github.com/nodejs/http-parser">http-parser</ulink> and
104 <ulink url="https://www.npmjs.com/">npm</ulink> (an internal copy of
105 <command>npm</command> will be installed if not present)
106 </para>
107
108 <para condition="html" role="usernotes">
109 User Notes: <ulink url="&blfs-wiki;/nodejs"/>
110 </para>
111
112 </sect2>
113
114 <sect2 role="installation">
115 <title>Installation of Node.js</title>
116
117 <para>
118 Build <application>Node.js</application> by running the following
119 commands:
120 </para>
121
122<screen><userinput>./configure --prefix=/usr \
123 --download=icu \
124 --shared-cares \
125 --shared-libuv \
126 --shared-nghttp2 \
127 --shared-openssl \
128 --shared-zlib \
129 --with-intl=full-icu &amp;&amp;
130make</userinput></screen>
131
132 <para>
133 To test the results, issue: <command>make test-only</command>.
134 <!--One test, test-dns, is known to fail.-->
135 <!-- When using make check, a module is used that wasn't shipped properly
136 with the 12.16.2 release. See Ticket #13379 for details. We should
137 probably restore "make check" after the next version of Node.js.
138 This new command skips the documentation and lint checks. -renodr-->
139 </para>
140
141 <para>
142 Now, as the <systemitem class="username">root</systemitem> user:
143 </para>
144
145<screen role="root"><userinput>make install &amp;&amp;
146ln -sf node /usr/share/doc/node-&nodejs-version;</userinput></screen>
147 </sect2>
148
149 <sect2 role="commands">
150 <title>Command Explanations</title>
151
152 <!--
153 <para>
154 <parameter>- -with-intl=system-icu</parameter>: use the system version
155 of <application>icu</application>. Other values are
156 <option>full-icu</option> (to build a local, full
157 <application>icu</application> library) and <option>small-icu</option>
158 (to build a local, minimal <application>icu</application> library).
159 </para>
160 -->
161
162 <!-- These two options are due to using the internal ICU version.
163 This prevents problems with ICU-67 -->
164 <para>
165 <parameter>--with-intl=full-icu</parameter>: This switch forces Node.js
166 to use its internal version of ICU.
167 </para>
168
169 <para>
170 <parameter>--download=icu</parameter>: This switch downloads the version
171 of ICU that is appropriate for this version of Node.js.
172 </para>
173
174 <para>
175 <parameter>--shared-{cares,libuv,nghttp2,openssl,zlib}</parameter>:
176 use the system installed libraries instead of local copies.
177 </para>
178
179 <para>
180 <option>--without-npm</option>: do not build
181 <application>npm</application> (use if you'd like to build a separate
182 <application>npm</application> later).
183 </para>
184
185 <para>
186 <option>--shared-http-parser</option>: use the system
187 installed library instead of a local copy.
188 </para>
189
190 </sect2>
191
192 <sect2 role="content">
193 <title>Contents</title>
194
195 <segmentedlist>
196 <segtitle>Installed Programs</segtitle>
197 <segtitle>Installed Library</segtitle>
198 <segtitle>Installed Directories</segtitle>
199
200 <seglistitem>
201 <seg>
202 node, npm, and npx
203 </seg>
204 <seg>
205 None
206 </seg>
207 <seg>
208 /usr/include/node,
209 /usr/lib/node_modules/npm,
210 /usr/share/doc/{node,node-&nodejs-version;}, and
211 /usr/share/systemtap/tapset
212 </seg>
213 </seglistitem>
214 </segmentedlist>
215
216 <variablelist>
217 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
218 <?dbfo list-presentation="list"?>
219 <?dbhtml list-presentation="table"?>
220
221 <varlistentry id="node">
222 <term><command>node</command></term>
223 <listitem>
224 <para>
225 is the server-side JavaScript runtime.
226 </para>
227 <indexterm zone="nodejs node">
228 <primary sortas="b-node">node</primary>
229 </indexterm>
230 </listitem>
231 </varlistentry>
232
233 <varlistentry id="npm">
234 <term><command>npm</command></term>
235 <listitem>
236 <para>
237 is the <application>Node.js</application> package manager.
238 </para>
239 <indexterm zone="nodejs npm">
240 <primary sortas="b-npm">npm</primary>
241 </indexterm>
242 </listitem>
243 </varlistentry>
244
245 <varlistentry>
246 <term><filename class='directory'>/usr/lib/node_modules/npm/</filename></term>
247 <listitem>
248 <para>
249 is the installation root for Node.js executables and libraries.
250 </para>
251 </listitem>
252 </varlistentry>
253
254 </variablelist>
255
256 </sect2>
257
258</sect1>
Note: See TracBrowser for help on using the repository browser.