希望这是发布的正确论坛。即将到来的堆栈溢出,但我认为这更多的是你们的专业知识。
我有一个 centos 6.10 盒子。它的 Node.js 和 npm 运行正常。我不知道他们是哪个版本的。我试图通过运行将它们更新到 LTS
sudo npm install n -g
现在,每当我运行时,npm
我都会收到此错误:
node: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.14' not found (required by node)
node: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.18' not found (required by node)
node: /usr/lib64/libstdc++.so.6: version `CXXABI_1.3.5' not found (required by node)
node: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by node)
node: /lib64/libc.so.6: version `GLIBC_2.16' not found (required by node)
node: /lib64/libc.so.6: version `GLIBC_2.17' not found (required by node)
node: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by node)
我试图完全卸载 node 和 npm 并重新安装它们,也没有运气。现在我没有技巧了。有人可以帮我解决我现在应该做什么吗?