source: general/genlib/nodejs.xml@ ee1676a

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

Update to node.js-12.16.2

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

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