source: general/genlib/nodejs.xml@ d52dba8

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.4 9.0 9.1 bdubbs/svn elogind 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 d52dba8 was e4edbf8, checked in by Bruce Dubbs <bdubbs@…>, 5 years ago

Really ix md5sum

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

  • Property mode set to 100644
File size: 6.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 "8cee04dd5e57cfebd370c90375596513">
10 <!ENTITY nodejs-size "20 MB">
11 <!ENTITY nodejs-buildsize "412 MB (without tests)">
12 <!ENTITY nodejs-time "5.5 SBU (using parallelism=4)">
13]>
14
15<sect1 id="nodejs" xreflabel="nodejs-&nodejs-version;">
16 <?dbhtml filename="nodejs.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
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
38 &lfs83_checked;
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>
73
74 <note>
75 <para>
76 This tarball was created using a BSD version of
77 <application>tar</application> and extracting it with a linux&trade;
78 version will produce harmless warnings about unknown extended header
79 keywords.
80 </para>
81 </note>
82
83 <bridgehead renderas="sect3">Node.js Dependencies</bridgehead>
84
85 <bridgehead renderas="sect4">Required</bridgehead>
86 <para role="required">
87 <xref linkend="python2"/>
88 </para>
89
90 <bridgehead renderas="sect4">Recommended</bridgehead>
91 <para role="recommended">
92 <xref linkend="c-ares"/>,
93 <xref linkend="icu"/> and
94 <xref linkend="libuv"/>
95 </para>
96
97 <bridgehead renderas="sect4">Optional</bridgehead>
98 <para role="optional">
99 <ulink url="https://github.com/nodejs/http-parser">http-parser</ulink>,
100 <ulink url="https://www.npmjs.com/">npm</ulink> (an internal copy of
101 <command>npm</command> will be installed if not present)
102 </para>
103
104 <para condition="html" role="usernotes">
105 User Notes: <ulink url="&blfs-wiki;/nodejs"/>
106 </para>
107
108 </sect2>
109
110 <sect2 role="installation">
111 <title>Installation of Node.js</title>
112
113 <para>
114 Build <application>Node.js</application> by running the following
115 commands:
116 </para>
117
118<screen><userinput>./configure --prefix=/usr \
119 --shared-cares \
120 --shared-libuv \
121 --shared-openssl \
122 --shared-zlib \
123 --with-intl=system-icu &amp;&amp;
124make</userinput></screen>
125
126 <!-- should get fixed eventually for openssl-1.1.1 in the v10 series,
127 the command is 'make check', as of v10.13.0 it takes at least 14 minutes
128 for the various timeouts to cut in, nad reports several errors. -->
129 <para>The test suite is currently broken when using
130 <application>openssl-1.1.1</application> and several tests will
131 eventually timeout.</para>
132
133 <para>
134 Now, as the <systemitem class="username">root</systemitem> user:
135 </para>
136
137<screen role="root"><userinput>make install &amp;&amp;
138ln -sf node /usr/share/doc/node-&nodejs-version;</userinput></screen>
139 </sect2>
140
141 <sect2 role="commands">
142 <title>Command Explanations</title>
143
144 <para><parameter>--with-intl=system-icu</parameter>: use the system version
145 of <application>icu</application>. Other values are
146 <option>full-icu</option> (to build a local, full
147 <application>icu</application> library) and <option>small-icu</option> (to
148 to build a local, minimal <application>icu</application> library).</para>
149
150 <para><parameter>--shared-{cares,libuv,openssl,zlib}</parameter>: use the
151 system installed libraries instead of local copies.</para>
152
153 <para><option>--without-npm</option>: do not build
154 <application>npm</application> (use if you'd like to build a separate
155 <application>npm</application> later).</para>
156
157 <para><option>--shared-http-parser</option>: use the system
158 installed library instead of a local copy.</para>
159
160 </sect2>
161
162 <sect2 role="content">
163 <title>Contents</title>
164
165 <segmentedlist>
166 <segtitle>Installed Programs</segtitle>
167 <segtitle>Installed Library</segtitle>
168 <segtitle>Installed Directories</segtitle>
169
170 <seglistitem>
171 <seg>
172 node, npm, and npx
173 </seg>
174 <seg>
175 None
176 </seg>
177 <seg>
178 /usr/include/node/ and
179 /usr/lib/node_modules/npm/
180 </seg>
181 </seglistitem>
182 </segmentedlist>
183
184 <variablelist>
185 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
186 <?dbfo list-presentation="list"?>
187 <?dbhtml list-presentation="table"?>
188
189 <varlistentry id="node">
190 <term><command>node</command></term>
191 <listitem>
192 <para>
193 is the server-side JavaScript runtime.
194 </para>
195 <indexterm zone="nodejs node">
196 <primary sortas="b-node">node</primary>
197 </indexterm>
198 </listitem>
199 </varlistentry>
200
201 <varlistentry id="npm">
202 <term><command>npm</command></term>
203 <listitem>
204 <para>
205 is the <application>Node.js</application> package manager.
206 </para>
207 <indexterm zone="nodejs npm">
208 <primary sortas="b-npm">npm</primary>
209 </indexterm>
210 </listitem>
211 </varlistentry>
212
213 <varlistentry>
214 <term><filename class='directory'>/usr/lib/node_modules/npm/</filename></term>
215 <listitem>
216 <para>is the installation root for Node.js executables and
217 libraries.</para>
218 </listitem>
219 </varlistentry>
220
221 </variablelist>
222
223 </sect2>
224
225</sect1>
Note: See TracBrowser for help on using the repository browser.