Port details |
- node18 V8 JavaScript for client and server
- 18.20.6_1 www
=4 18.20.6Version of this port present on the latest quarterly branch. - Maintainer: sunpoet@FreeBSD.org
 - Port Added: 2023-01-30 14:27:08
- Last Update: 2025-02-19 14:48:12
- Commit Hash: 5cbc82c
- People watching this port, also watch:: npm-node18, gnupg, curl, jq
- License: MIT
- WWW:
- https://nodejs.org/
- https://github.com/nodejs/node
- Description:
- Node.js is a free, open-source, cross-platform JavaScript runtime environment
that lets developers create servers, web apps, command line tools and scripts.
 ¦ ¦ ¦ ¦ 
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - Dependency lines:
-
- Conflicts:
- CONFLICTS_INSTALL:
- To install the port:
- cd /usr/ports/www/node18/ && make install clean
- To add the package, run one of these commands:
- pkg install www/node18
- pkg install node18
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.- PKGNAME: node18
- Flavors: there is no flavor information for this port.
- ONLY_FOR_ARCHS: aarch64 amd64 armv6 armv7 i386 powerpc64 powerpc64le
- distinfo:
- TIMESTAMP = 1738088864
SHA256 (node-v18.20.6.tar.xz) = c669b48b632fa6797d4f5fa7bbd2b476ec961120957864402226cc9fd8ebbc0e
SIZE (node-v18.20.6.tar.xz) = 40436952
Packages (timestamps in pop-ups are UTC):
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- brotli>=1.0.9,1 : archivers/brotli
- c-ares>=1.17.2 : dns/c-ares
- libnghttp2>=1.45.1 : www/libnghttp2
- libuv>=1.42.0 : devel/libuv
- objdump : devel/binutils
- icu>=69.1 : devel/icu
- gmake>=4.4.1 : devel/gmake
- pkgconf>=1.3.0_1 : devel/pkgconf
- python3.11 : lang/python311
- Runtime dependencies:
-
- ca_root_nss>=0 : security/ca_root_nss
- Library dependencies:
-
- libbrotlidec.so : archivers/brotli
- libcares.so : dns/c-ares
- libnghttp2.so : www/libnghttp2
- libuv.so : devel/libuv
- libicui18n.so : devel/icu
- This port is required by:
- for Build
-
- security/caldera
- textproc/kibana8
- textproc/opensearch-dashboards
- textproc/opensearch-dashboards210
- textproc/opensearch-dashboards213
- textproc/opensearch-dashboards216
- www/onlyoffice-documentserver
-
Deleted ports which required this port:
- for Run
-
- textproc/kibana8
- textproc/opensearch-dashboards
- textproc/opensearch-dashboards210
- textproc/opensearch-dashboards213
- textproc/opensearch-dashboards216
- www/npm-node18
- www/yarn-node18
Configuration Options:
- ===> The following configuration options are available for node18-18.20.6_1:
BUNDLED_SSL=off: Use bundled OpenSSL implementation from node.js
DOCS=on: Build and/or install documentation
JIT=on: Use Just In Time compiler
NLS=on: Native Language Support
===> Use 'make config' to modify these settings
- Options name:
- www_node18
- USES:
- compiler:c++11-lib gmake localbase pkgconfig python:build shebangfix tar:xz ssl
- pkg-message:
- For install:
- Note: If you need npm (Node Package Manager), please install www/npm.
- Master Sites:
|
Commit History - (may be incomplete: for full details, see links to repositories near top of page) |
Commit | Credits | Log message |
18.20.6_1 19 Feb 2025 14:48:12
    |
Po-Chuan Hsieh (sunpoet)  |
www/node18: Bump PORTREVISION for devel/icu shlib change
It should be part of ports ff33dd4700e81bd57df259a0fe29ed5fdddf2653.
PR: 284828 |
18.20.6 03 Feb 2025 15:50:51
    |
Po-Chuan Hsieh (sunpoet)  |
www/node18: Update to 18.20.6
Changes: https://github.com/nodejs/node/releases
https://github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V18.md
Security: CVE-2025-22150, CVE-2025-23084, CVE-2025-23085 |
18.20.5 31 Dec 2024 15:57:11
    |
Po-Chuan Hsieh (sunpoet)  |
www/node18: Fix build with icu 76.1
PR: 283565
Reported by: diizzy
Obtained
from: https://github.com/nodejs/node/commit/81517faceac86497b3c8717837f491aa29a5e0f9 |
18.20.5 21 Nov 2024 13:37:59
    |
Po-Chuan Hsieh (sunpoet)  |
www/node18: Update to 18.20.5
Changes: https://github.com/nodejs/node/releases
https://github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V18.md |
18.20.4 21 Oct 2024 09:17:27
    |
Po-Chuan Hsieh (sunpoet)  |
www/node18: Cosmetic change |
18.20.4 07 Oct 2024 14:58:46
    |
Po-Chuan Hsieh (sunpoet)  Author: Piotr Kubaj |
www/node{18,20,22}: Add JIT option
PR: 281746 |
18.20.4 19 Sep 2024 07:16:40
    |
Dimitry Andric (dim)  |
www/node18: fix build with libc++ 19
As noted in the libc++ 19 release notes [1], std::char_traits<> is now
only provided for char, char8_t, char16_t, char32_t and wchar_t, and any
instantiation for other types will fail.
This causes www/node18 to fail to compile with clang 19 and libc++ 19,
resulting in errors similar to:
/usr/include/c++/v1/string:820:42: error: implicit instantiation of
undefined template 'std::char_traits<unsigned short>'
820 | static_assert(is_same<_CharT, typename
traits_type::char_type>::value,
| ^
../deps/v8/src/inspector/string-16.h:113:28: note: in instantiation of
template class 'std::basic_string<unsigned short>' requested here
113 | std::basic_string<UChar> m_impl;
| ^ (Only the first 15 lines of the commit message are shown above ) |
18.20.4 10 Jul 2024 04:57:34
    |
Po-Chuan Hsieh (sunpoet)  |
www/node18: Update to 18.20.4
Changes: https://github.com/nodejs/node/releases
https://github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V18.md
Security: CVE-2024-22020, CVE-2024-36138 |
18.20.3 01 Jul 2024 20:27:23
    |
Rene Ladan (rene)  |
all: drop support for FreeBSD 13.2 which reached EOL today
Thanks again to jbeich for noticing various things I overlooked.
Reviewed by: acm, ashish, eduardo, ehaupt, eugen, jbeich, martymac, mat,
nobukata, sunpoet, tagattie, yuri, arrowd, kde
Differential Revision: https://reviews.freebsd.org/D45141 |
18.20.3 28 May 2024 10:21:26
    |
Po-Chuan Hsieh (sunpoet)  |
www/node18: Update to 18.20.3
Changes: https://github.com/nodejs/node/releases
https://github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V18.md |
18.20.2 13 Apr 2024 09:31:34
    |
Po-Chuan Hsieh (sunpoet)  |
www/node18: Update to 18.20.2
Changes: https://github.com/nodejs/node/releases
https://github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V18.md
Security: CVE-2024-27980, CVE-2024-27982, CVE-2024-27983 |
18.19.1 09 Mar 2024 14:05:33
    |
Po-Chuan Hsieh (sunpoet)  |
www/node18: Update to 18.19.1
Changes: https://github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V18.md
Security: CVE-2023-46809, CVE-2024-21892, CVE-2024-22019, CVE-2024-22025 |
18.18.2_2 21 Feb 2024 15:06:49
    |
Po-Chuan Hsieh (sunpoet)  |
www/node18: Fix 99ea45a72a2800fc90e98ee225a42c3e88da8602
- Fix PORTREVISION order
- Remove unnecessary GNU_CONFIGURE_MANPREFIX
- Sort PLIST |
18.18.2_2 30 Jan 2024 11:49:31
    |
Muhammad Moinur Rahman (bofh)  |
www/node18: Moved man to share/man
Approved by: portmgr (blanket) |
18.18.2_1 05 Jan 2024 21:04:27
    |
Piotr Kubaj (pkubaj)  |
www/node18: remove ELFv1 support |
18.18.2_1 14 Dec 2023 20:52:47
    |
Po-Chuan Hsieh (sunpoet)  Author: Brad Davis |
www/node18: Fix build with Clang on armv7
PR: 275756 |
18.18.2_1 18 Nov 2023 00:27:13
    |
Yasuhiro Kimura (yasu)  |
www/node18: Remove DTrace support to fix build with upcoming binutils 2.41
* With binutils 2.41 build fails as following.
LD_LIBRARY_PATH=/wrkdirs/usr/ports/www/node18/work/node-v18.18.2/out/Release/lib.host:/wrkdirs/usr/ports/www/node18/work/node-v18.18.2/out/Release/lib.target:$LD_LIBRARY_PATH;
export LD_LIBRARY_PATH; cd ../.; mkdir -p
/wrkdirs/usr/ports/www/node18/work/node-v18.18.2/out/Release/obj.target/libnode/src;
dtrace -64
"-I/wrkdirs/usr/ports/www/node18/work/node-v18.18.2/out/Release/obj/gen" -Isrc
-C -G -s src/v8ustack.d -o
"/wrkdirs/usr/ports/www/node18/work/node-v18.18.2/out/Release/obj.target/libnode/src/node_dtrace_ustack.o"
dtrace: failed to compile script src/v8ustack.d: line 1: failed to resolve
V8DBG_SMITAG: Unknown variable name
* This is because behaviour of objdump has changes with binutils 2.41. [1][2]
* On upstream DTrace support itself has been removed with Node.js 19.x.
* There is a pull request that says it fixes build error. [3] I tried
it but unfortunately it doesn't work as is expected.
* Upstream suggests me to remove DTrace support. [4]
Reference: https://github.com/nodejs/node/issues/49991#issue-1920717730 [1]
Reference: https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=0a3137ce4c4b38ee8
[2]
Reference: https://github.com/nodejs/node/pull/49992 [3]
Reference: https://github.com/nodejs/node/pull/49992#issuecomment-1784231190 [4]
PR: 274847
Approved by: maintainer timeout |
18.18.2_1 17 Nov 2023 11:46:00
    |
Jan Beich (jbeich)  |
devel/icu: update to 74.1
Changes: https://github.com/unicode-org/icu/releases/tag/release-74-1
Reported by: GitHub (watch releases)
PR: 274317
Exp-run by: antoine (incomplete)
Approved by: fluffy |
18.18.2 16 Oct 2023 15:59:43
    |
Po-Chuan Hsieh (sunpoet)  |
www/node18: Update to 18.18.2
Changes: https://github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V18.md
Security: CVE-2023-38552, CVE-2023-39333, CVE-2023-44487, CVE-2023-45143 |
18.18.0 15 Oct 2023 11:02:16
    |
Piotr Kubaj (pkubaj)  |
www/node18: fix build on powerpc64*
In file included from
../deps/v8/src/compiler/backend/ppc/code-generator-ppc.cc:6:
In file included from ../deps/v8/src/codegen/assembler-inl.h:8:
In file included from ../deps/v8/src/codegen/assembler.h:46:
In file included from ../deps/v8/src/codegen/external-reference.h:9:
In file included from ../deps/v8/src/runtime/runtime.h:11:
../deps/v8/src/base/bit-field.h:43:29: error: integer value 31 is outside the
valid range of values [0, 3] for the enumeration type 'AddressingMode'
[-Wenum-constexpr-conversion]
static constexpr T kMax = static_cast<T>(kNumValues - 1); |
18.18.0 08 Oct 2023 11:54:34
    |
Po-Chuan Hsieh (sunpoet)  |
www/node18: Use .tar.xz instead of .tar.gz
Reported by: danfe |
18.18.0 06 Oct 2023 17:28:23
    |
Piotr Kubaj (pkubaj)  |
www/node18: update patch for powerpc64* |
18.18.0 29 Sep 2023 16:13:38
    |
Po-Chuan Hsieh (sunpoet)  |
www/node18: Update to 18.18.0
Changes: https://github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V18.md |
18.17.1 21 Aug 2023 17:03:13
    |
Po-Chuan Hsieh (sunpoet)  |
www/node18: Update to 18.17.1
Changes: https://github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V18.md |
18.17.0 16 Aug 2023 18:25:12
    |
Po-Chuan Hsieh (sunpoet)  |
www/node18: Update to 18.17.0
- Remove unneeded .include <bsd.port.options.mk>
- Sort PLIST
Changes: https://github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V18.md |
18.16.1 25 Jul 2023 06:48:01
    |
Nuno Teixeira (eduardo)  |
www/node18: Fix build with llvm16 on aarch64
PR: 272645
Approved by: portmgr (blanket) |
18.16.1 09 Jul 2023 10:18:10
    |
Po-Chuan Hsieh (sunpoet)  |
www/node18: Update to 18.16.1
- Update BROKEN_SSL_REASON
Changes: https://github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V18.md |
18.16.0 30 Jun 2023 13:23:11
    |
Po-Chuan Hsieh (sunpoet)  |
www/node18: Rename and regenerate patch files |
18.16.0 27 Jun 2023 19:34:34
    |
Rene Ladan (rene)  |
all: remove explicit versions in USES=python for "3.x+"
The logic in USES=python will automatically convert this to 3.8+ by
itself.
Adjust two ports that only had Python 3.7 mentioned but build fine
on Python 3.8 too.
finance/quickfix: mark BROKEN with PYTHON
libtool: compile: c++ -DHAVE_CONFIG_H -I. -I../.. -I -I. -I.. -I../.. -I../C++
-DLIBICONV_PLUG -DPYTHON_MAJOR_VERSION=3 -Wno-unused-variable
-Wno-maybe-uninitialized -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong
-fno-strict-aliasing -DLIBICONV_PLUG -Wall -ansi
-Wno-unused-command-line-argument -Wpointer-arith -Wwrite-strings
-Wno-overloaded-virtual -Wno-deprecated-declarations -Wno-deprecated -std=c++0x
-MT _quickfix_la-QuickfixPython.lo -MD -MP -MF
.deps/_quickfix_la-QuickfixPython.Tpo -c QuickfixPython.cpp -fPIC -DPIC -o
.libs/_quickfix_la-QuickfixPython.o
warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean
'-Wno-uninitialized'? [-Wunknown-warning-option]
QuickfixPython.cpp:175:11: fatal error: 'Python.h' file not found
^~~~~~~~~~
1 warning and 1 error generated.
Reviewed by: portmgr, vishwin, yuri
Differential Revision: <https://reviews.freebsd.org/D40568> |
18.16.0 07 Jun 2023 07:25:08
    |
Muhammad Moinur Rahman (bofh)  |
www/node18: Fix build with OpenSSL 3
- This was tested only with OpenSSL 3 from base but not with openssl30
or openssl31 ports
- Refresh patches
PR: 271868
Reported by: emaste
Approved by: portmgr (blanket) |
18.16.0 21 Apr 2023 15:26:06
    |
Piotr Kubaj (pkubaj)  |
www/node18: fix patching on powerpc64* |
18.16.0 18 Apr 2023 18:00:46
    |
Po-Chuan Hsieh (sunpoet)  |
www/node18: Update to 18.16.0
Changes: https://github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V18.md |
18.15.0_1 13 Apr 2023 00:56:37
    |
Jan Beich (jbeich)  |
devel/icu: update to 73.1
- Temporarily switch to GitHub auto archive (release artifacts are N/A atm)
Changes: https://github.com/unicode-org/icu/releases/tag/release-73-1
Reported by: GitHub (watch releases)
PR: 270422
Exp-run by: antoine |
18.15.0 05 Apr 2023 17:29:53
    |
Po-Chuan Hsieh (sunpoet)  |
www/node18: Update to 18.15.0
Changes: https://github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V18.md |
18.14.0 21 Mar 2023 19:20:11
    |
Po-Chuan Hsieh (sunpoet)  |
www/node18: Update to 18.14.0
Changes: https://github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V18.md |
18.13.0 20 Feb 2023 22:06:37
    |
Matthias Andree (mandree)  |
www/node18: www/node19: honor ccache for build
This works because CCACHE_BIN is empty if not requested.
Approved by: sunpoet@ (maintainer)
PR: 269491 |
18.13.0 05 Feb 2023 15:47:46
    |
Po-Chuan Hsieh (sunpoet)  |
www/node18: Fix USES=python
It follows acceptable_pythons in the configure script. [1]
PR: 269279
Reported by: Jordan Ostreff <jordan@ostreff.info>
Reference: https://github.com/nodejs/node/blob/v18.14.0/configure [1] |
18.13.0 30 Jan 2023 23:51:42
    |
Po-Chuan Hsieh (sunpoet)  |
www/node18: Update to 18.13.0
Changes: https://github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V18.md |
18.12.1 30 Jan 2023 14:20:38
    |
Po-Chuan Hsieh (sunpoet)  |
Framework: Rewrite nodejs.mk and reorganize www/{node,npm,yarn}
The current USES=nodejs has the following issues:
- www/node is not the default version while www/node16 is.
- It also means inconsistent naming of node ports.
- www/npm duplicates with www/npm-node16.
- www/yarn duplicates with www/yarn-node16.
The notable changes are introduced to fix the above issues:
- Rewrite Mk/Uses/nodejs.mk.
- Add new LTS version of nodejs (www/noe18).
- Add new current version of nodejs (www/node19).
- Change default nodejs version from 16 to 18 (latest LTS).
- Use consistent naming for all supported node versions.
- Convert www/node, www/npm and www/yarn to meta ports.
After this commit:
- All supported node versions are named as node{14,16,18,19}
- www/node is a meta port which depends on the default version (e.g. www/node18)
- www/npm is a meta port which depends on the default version (e.g.
www/npm-node18)
- www/yarn is a meta port which depends on the default version (e.g.
www/yarn-node18)
- Bump PORTREVISION of dependent ports for dependency change (from www/node16 to
www/node18)
Discussed with: jrm, otis, pizzamig |