Symptoms
- Running 'node' or 'npm' commands via CLI results in error:
# /opt/plesk/node/18/bin/node -v
/opt/plesk/node/18/bin/node: /lib64/libm.so.6: version `GLIBC_2.27' not found (required by /opt/plesk/node/18/bin/node)
/opt/plesk/node/18/bin/node: /lib64/libc.so.6: version `GLIBC_2.25' not found (required by /opt/plesk/node/18/bin/node)
/opt/plesk/node/18/bin/node: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by /opt/plesk/node/18/bin/node)
/opt/plesk/node/18/bin/node: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /opt/plesk/node/18/bin/node)
/opt/plesk/node/18/bin/node: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /opt/plesk/node/18/bin/node)
/opt/plesk/node/18/bin/node: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /opt/plesk/node/18/bin/node) - The version of the glibc package installed on the server is less than 2.28:
# ldd --version
ldd (GNU libc) 2.17
Cause
The Node.js 18 is compatible only with Linux distributions based on glibc 2.28 or later.
The fact that Node.JS 18 was installed without meeting these dependencies is considered a product bug with ID #EXTNODEJS-215 , which is already fixed in Node.js extension version 2.1.3
Resolution
- Log into Plesk.
- Update Node.JS extension to the latest version:
In order to use NodeJS 18, install it on a server with supported OS, e.g. Debian 10, RHEL 8, Ubuntu 20.04.