source: general/genlib/nodejs.xml@ 6cbbb2d

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

Update to node.js-14.15.4
Update to nss-3.60.1
GnuPG: Remove unrecognized option from the configure line

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

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