node: /lib64/libm.so.6: version `GLIBC_2.27' not found (required by node)报错解决

构建项目安装nodejs时报如下错:

node: /lib64/libm.so.6: version `GLIBC_2.27' not found (required by node)

node: /lib64/libc.so.6: version `GLIBC_2.25' not found (required by node)

node: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by node)

node: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by node)

node: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by node)

node: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by node)

主要是由于全局设置中配置的nodejs版本和jenkins所在服务器使用的node版本不一致导致。

查看jenkins所在服务器中node的版本:node -v

将全局设置中nodejs的版本设置为和服务器上node的版本一致

再次构建任务,成功

你可能感兴趣的:(node: /lib64/libm.so.6: version `GLIBC_2.27' not found (required by node)报错解决)