source: general/genlib/nodejs.xml@ fdac07c

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 xry111/llvm18 xry111/xf86-video-removal
Last change on this file since fdac07c was 30824f0b, checked in by Pierre Labastie <pierre.labastie@…>, 20 months ago

Typo

  • Property mode set to 100644
File size: 7.8 KB
RevLine 
[4464d405]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
[2d4d59a]7 <!ENTITY nodejs-download-http "https://nodejs.org/dist/v&nodejs-version;/node-v&nodejs-version;.tar.xz">
[4464d405]8 <!ENTITY nodejs-download-ftp " ">
[38277fd]9 <!ENTITY nodejs-md5sum "7322f55ce420f49378515b67d73faf88">
10 <!ENTITY nodejs-size "37 MB">
11 <!ENTITY nodejs-buildsize "930 MB (add 29 MB for tests)">
12 <!ENTITY nodejs-time "18 SBU (add 4.6 SBU for tests: both using parallelism=4 and 4 CPUs online, parts of the tests will use all online CPUs)">
[4464d405]13]>
14
15<sect1 id="nodejs" xreflabel="nodejs-&nodejs-version;">
16 <?dbhtml filename="nodejs.html"?>
17
18 <sect1info>
[542d478]19 <date>$Date$</date>
[4464d405]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
[8558044]34 <application>Chrome's</application> V8 JavaScript engine.
[4464d405]35 </para>
36
[0ddf4e7]37 &lfs112_checked;
[4464d405]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>
[25ef5f7]72
[dda8ca6]73<!--
[b01309e7]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>
[dda8ca6]83-->
[25ef5f7]84
[4464d405]85 <bridgehead renderas="sect3">Node.js Dependencies</bridgehead>
86
87 <bridgehead renderas="sect4">Required</bridgehead>
88 <para role="required">
[8558044]89 <xref linkend="which"/>
[4464d405]90 </para>
91
92 <bridgehead renderas="sect4">Recommended</bridgehead>
93 <para role="recommended">
[bbaebd0]94 <xref linkend="c-ares"/>,
[52e582c9]95 <xref linkend="icu"/>,
96 <xref linkend="libuv"/>, and
97 <xref linkend="nghttp2"/>
[4464d405]98 </para>
99
100 <bridgehead renderas="sect4">Optional</bridgehead>
101 <para role="optional">
[ee1676a]102 <ulink url="https://github.com/nodejs/http-parser">http-parser</ulink> and
[f02583f]103 <ulink url="https://www.npmjs.com/">npm</ulink> (an internal copy of
104 <command>npm</command> will be installed if not present)
[4464d405]105 </para>
106
107 <para condition="html" role="usernotes">
108 User Notes: <ulink url="&blfs-wiki;/nodejs"/>
109 </para>
110
111 </sect2>
112
113 <sect2 role="installation">
114 <title>Installation of Node.js</title>
115
[dda8ca6]116<!--
[25ef5f7]117 <para>
118 First, apply a patch to fix building Node.js against ICU-69.1:
119 </para>
120
121<screen><userinput>patch -Np1 -i ../node-v&nodejs-version;-icu_69-1.patch</userinput></screen>
[dda8ca6]122-->
[38277fd]123 <para>
124 The <command>configure</command> script for this version of Node.js is
125 not aware of Python-3.11. If you have installed <xref linkend="python3"/>,
[30824f0b]126 apply the following change:
[38277fd]127 </para>
128
[5e0cd08]129<screen><userinput>sed -e '/=.*exec/a command -v python3.11 >/dev/null &amp;&amp; exec python3.11 "$0" "$@"' \
130 -e s'/((/((3, 11), (/' \
131 -i configure</userinput></screen>
[25ef5f7]132
[4464d405]133 <para>
134 Build <application>Node.js</application> by running the following
135 commands:
136 </para>
137
[de66d05]138<screen><userinput>./configure --prefix=/usr \
[ccec040c]139 --shared-cares \
140 --shared-libuv \
141 --shared-openssl \
142 --shared-nghttp2 \
143 --shared-zlib \
144 --with-intl=system-icu &amp;&amp;
[4464d405]145make</userinput></screen>
146
[d56e7df]147 <para>
[ee1676a]148 To test the results, issue: <command>make test-only</command>.
[88fbb40]149 One test, test-socket-write-after-fin-error, out of over 3600 tests is known to fail.
[6914a417]150 </para>
[4464d405]151
152 <para>
153 Now, as the <systemitem class="username">root</systemitem> user:
154 </para>
155
156<screen role="root"><userinput>make install &amp;&amp;
157ln -sf node /usr/share/doc/node-&nodejs-version;</userinput></screen>
158 </sect2>
159
160 <sect2 role="commands">
161 <title>Command Explanations</title>
162
[d56e7df]163 <para>
[6cbbb2d6]164 <parameter>--with-intl=system-icu</parameter>: use the system version
[d56e7df]165 of <application>icu</application>. Other values are
166 <option>full-icu</option> (to build a local, full
167 <application>icu</application> library) and <option>small-icu</option>
168 (to build a local, minimal <application>icu</application> library).
169 </para>
[4464d405]170
[d56e7df]171 <para>
[087639a]172 <parameter>--shared-{cares,libuv,nghttp2,openssl,zlib}</parameter>:
[d56e7df]173 use the system installed libraries instead of local copies.
174 </para>
[4464d405]175
[d56e7df]176 <para>
177 <option>--without-npm</option>: do not build
178 <application>npm</application> (use if you'd like to build a separate
179 <application>npm</application> later).
180 </para>
[4464d405]181
[d56e7df]182 <para>
183 <option>--shared-http-parser</option>: use the system
184 installed library instead of a local copy.
185 </para>
[4464d405]186
187 </sect2>
188
189 <sect2 role="content">
190 <title>Contents</title>
191
192 <segmentedlist>
193 <segtitle>Installed Programs</segtitle>
194 <segtitle>Installed Library</segtitle>
195 <segtitle>Installed Directories</segtitle>
196
197 <seglistitem>
198 <seg>
[38277fd]199 corepack, node, npm, and npx
[4464d405]200 </seg>
201 <seg>
202 None
203 </seg>
204 <seg>
[6a43232]205 /usr/include/node,
[c2051dbd]206 /usr/lib/node_modules/{corepack,npm},
[ee1676a]207 /usr/share/doc/{node,node-&nodejs-version;}, and
[6a43232]208 /usr/share/systemtap/tapset
[4464d405]209 </seg>
210 </seglistitem>
211 </segmentedlist>
212
213 <variablelist>
214 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
215 <?dbfo list-presentation="list"?>
216 <?dbhtml list-presentation="table"?>
217
[38277fd]218 <varlistentry id="corepack">
219 <term><command>corepack</command></term>
220 <listitem>
221 <para>
222 is an experimental tool to help with managing versions of package
223 managers.
224 </para>
225 <indexterm zone="nodejs corepack">
226 <primary sortas="b-corepack">corepack</primary>
227 </indexterm>
228 </listitem>
229 </varlistentry>
230
[4464d405]231 <varlistentry id="node">
232 <term><command>node</command></term>
233 <listitem>
234 <para>
[4c24eb0a]235 is the server-side JavaScript runtime
[4464d405]236 </para>
237 <indexterm zone="nodejs node">
238 <primary sortas="b-node">node</primary>
239 </indexterm>
240 </listitem>
241 </varlistentry>
242
243 <varlistentry id="npm">
244 <term><command>npm</command></term>
245 <listitem>
246 <para>
[4c24eb0a]247 is the <application>Node.js</application> package manager
[4464d405]248 </para>
249 <indexterm zone="nodejs npm">
250 <primary sortas="b-npm">npm</primary>
251 </indexterm>
252 </listitem>
253 </varlistentry>
254
255 <varlistentry>
[4c24eb0a]256 <term>
257 <filename class="directory">/usr/lib/node_modules/npm/</filename>
258 </term>
[4464d405]259 <listitem>
[d56e7df]260 <para>
[4c24eb0a]261 is the installation root for Node.js executables and libraries
[d56e7df]262 </para>
[4464d405]263 </listitem>
264 </varlistentry>
265
266 </variablelist>
267
268 </sect2>
269
270</sect1>
Note: See TracBrowser for help on using the repository browser.