Use node 18/20 on CentOS 7
how to use node 18/20 on centos7
install node by nvm
1 | # install nvm |
You will find that node 16 works well, but node 20 will not work, because the glibc
version is too low.
That's so bad, but don't worry; we can fix it by the following steps.
install glibc 2.31 and libstdc++.so.6.0.25
Follow my another article centos7-upgrade-libc to upgrade glibc
to 2.31.
test
1 | nvm alias default lts/iron |