source: general/genlib/nodejs.xml@ 8abb1a7b

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

Package Updates.
Update to umockdev-0.16.1.
Update to node.js-14.17.3.

These updates duplicate, with minor fixes, updates make yesterday
becuase of poor quality control by upstream.

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