source: general/genlib/nodejs.xml@ dda8ca6

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 dda8ca6 was dda8ca6, checked in by Douglas R. Reno <renodr@…>, 3 years ago

Update to node-v14.17.1

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