source: general/genlib/nodejs.xml@ 774675e5

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 774675e5 was 774675e5, checked in by Bruce Dubbs <bdubbs@…>, 3 years ago

Update to node-v14.17.0

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