source: general/genlib/nodejs.xml@ a4f37269

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt perl-modules 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 a4f37269 was a4f37269, checked in by DJ Lucas <dj@…>, 7 years ago

Update to OpenSSL-1.1.0f. Fixes #8214.
Update to OpenSSL Libraries 1.0.2l. Fixes #9282.
Remove Re-alpine and raplaced with Alpine-2.21.

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

  • Property mode set to 100644
File size: 7.2 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://github.com/nodejs/node/archive/v&nodejs-version;.tar.gz">
8 <!ENTITY nodejs-download-ftp " ">
9 <!ENTITY nodejs-md5sum "24bfdd2f3d96818608a508482c1e3cd8">
10 <!ENTITY nodejs-size "45 MB">
11 <!ENTITY nodejs-buildsize "432 MB">
12 <!ENTITY nodejs-time "9.3 SBU">
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 &lfs80_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 The <application>Node.js</application> source tarball shown above
77 downloads with the correct name, node-&nodejs-version;.tar.gz,
78 if using a browser such as Firefox. If you prefer to use a command line
79 program such as wget, you normally would obtain
80 v&nodejs-version;.tar.gz. To obtain this package with the proper
81 filename, run:
82 </para>
83
84<screen><userinput>wget -c https://github.com/nodejs/node/archive/v&nodejs-version;.tar.gz \
85 -O node-&nodejs-version;.tar.gz</userinput></screen>
86
87 </note>
88
89 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
90 <itemizedlist spacing="compact">
91 <listitem>
92 <para>
93 Required patch for use with ICU &gt;= 59:
94 <ulink url="&patch-root;/node-&nodejs-version;-icu59-1.patch"/>
95 </para>
96 </listitem>
97 </itemizedlist>
98
99 <bridgehead renderas="sect3">Node.js Dependencies</bridgehead>
100
101 <bridgehead renderas="sect4">Required</bridgehead>
102 <para role="required">
103 <xref linkend="python2"/>
104 </para>
105
106 <bridgehead renderas="sect4">Recommended</bridgehead>
107 <para role="recommended">
108 <xref linkend="c-ares"/>,
109 <xref linkend="icu"/>, and
110 <xref linkend="openssl10"/>
111 </para>
112
113 <bridgehead renderas="sect4">Optional</bridgehead>
114 <para role="optional">
115 <ulink url="https://github.com/nodejs/http-parser">http-parser</ulink>,
116 <ulink url="https://github.com/libuv/libuv">libuv</ulink>, and
117 <ulink url="https://www.npmjs.com/">npm</ulink>, (internal versions of
118 these packages will be used if they are not present)
119 </para>
120
121 <para condition="html" role="usernotes">
122 User Notes: <ulink url="&blfs-wiki;/nodejs"/>
123 </para>
124
125 </sect2>
126
127 <sect2 role="installation">
128 <title>Installation of Node.js</title>
129
130 <para>
131 First, fix a build issue with <application>icu</application> &gt;= 59:
132 </para>
133
134<screen><userinput>patch -Np1 -i ../node-&nodejs-version;-icu59-1.patch</userinput></screen>
135
136 <para>
137 Build <application>Node.js</application> by running the following
138 commands:
139 </para>
140
141<screen><userinput>PKG_CONFIG_PATH=/usr/lib/openssl-1.0/pkgconfig \
142 ./configure --prefix=/usr \
143 --shared-cares \
144 --shared-openssl \
145 --shared-zlib \
146 --with-intl=system-icu &amp;&amp;
147make</userinput></screen>
148
149 <para>This package does not come with a test suite.</para>
150
151 <para>
152 Now, as the <systemitem class="username">root</systemitem> user:
153 </para>
154
155<screen role="root"><userinput>make install &amp;&amp;
156ln -sf node /usr/share/doc/node-&nodejs-version;</userinput></screen>
157 </sect2>
158
159 <sect2 role="commands">
160 <title>Command Explanations</title>
161
162 <para><parameter>--with-intl=system-icu</parameter>: use the system version
163 of <application>icu</application>. Other values are
164 <option>full-icu</option> (to build a local, full
165 <application>icu</application> library) and <option>small-icu</option> (to
166 to build a local, minimal <application>icu</application> library).</para>
167
168 <para><parameter>--shared-{cares,openssl,zlib}</parameter>: use the system
169 installed libraries instead of local copies.</para>
170
171 <para><option>--without-npm</option>: do not build
172 <application>npm</application> (use if you'd like to build a separate
173 <application>npm</application> later).</para>
174
175 <para><option>--shared-{http-parser,libuv}</option>: use the system
176 installed libraries instead of local copies.</para>
177
178 </sect2>
179
180 <sect2 role="content">
181 <title>Contents</title>
182
183 <segmentedlist>
184 <segtitle>Installed Programs</segtitle>
185 <segtitle>Installed Library</segtitle>
186 <segtitle>Installed Directories</segtitle>
187
188 <seglistitem>
189 <seg>
190 /usr/bin/node and /usr/bin/npm
191 </seg>
192 <seg>
193 None
194 </seg>
195 <seg>
196 /usr/lib/node_modules/npm/
197 </seg>
198 </seglistitem>
199 </segmentedlist>
200
201 <variablelist>
202 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
203 <?dbfo list-presentation="list"?>
204 <?dbhtml list-presentation="table"?>
205
206 <varlistentry id="node">
207 <term><command>node</command></term>
208 <listitem>
209 <para>
210 is the server-side JavaScript runtime.
211 </para>
212 <indexterm zone="nodejs node">
213 <primary sortas="b-node">node</primary>
214 </indexterm>
215 </listitem>
216 </varlistentry>
217
218 <varlistentry id="npm">
219 <term><command>npm</command></term>
220 <listitem>
221 <para>
222 is the <application>Node.js</application> package manager.
223 </para>
224 <indexterm zone="nodejs npm">
225 <primary sortas="b-npm">npm</primary>
226 </indexterm>
227 </listitem>
228 </varlistentry>
229
230 <varlistentry>
231 <term><filename class='directory'>/usr/lib/node_modules/npm/</filename></term>
232 <listitem>
233 <para>is the installaton root for Node.js executables and
234 libraries.</para>
235 </listitem>
236 </varlistentry>
237
238 </variablelist>
239
240 </sect2>
241
242</sect1>
Note: See TracBrowser for help on using the repository browser.