在Godaddy共享Linux主机上安装Nodejs时出错 [英] Error while installing Nodejs on Godaddy Shared Linux Hosting

查看:124
本文介绍了在Godaddy共享Linux主机上安装Nodejs时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在通过PuTTy连接到SSH,从而在Godaddy共享Linux主机上安装Node.js.遇到错误.

I am installing Node.js on Godaddy Shared Linux Hosting by connecting to SSH via PuTTy. Getting Errors.

我跑了

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash

命令安装nvm.NVM已成功安装,因为我在运行时收到响应"0.34.0" nvm --version .

command to install nvm. NVM is successfully installed as I getting response '0.34.0' on running nvm --version.

我正在运行 nvm install node 来安装Node.js.

I am running nvm install node to install Node.js.

运行此命令后,出现以下错误:

After running this command I am getting following errors:


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.17' 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.14' not found (required by node)
nvm is not compatible with the npm config "prefix" option: currently set to ""
Run `nvm use --delete-prefix v12.9.0` to unset it.

我希望 nvm install node 成功安装Node.js及其所有依赖项.实际结果(来自腻子):

I am expecting nvm install node to successfully install Node.js and all its dependencies. Actual Results (From Putty):

nvm安装节点

Downloading and installing node v12.9.0...
Downloading https://nodejs.org/dist/v12.9.0/node-v12.9.0-linux-x64.tar.gz...
######################################################################## 100.0%
Computing checksum with sha256sum
Checksums matched!
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.17' 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.14' not found (required by node)
nvm is not compatible with the npm config "prefix" option: currently set to ""
Run `nvm use --delete-prefix v12.9.0` to unset it.

引用此博客- https://ferugi.com/blog/nodejs-on-godaddy-shared-cpanel/

请帮助.

推荐答案

我遇到了同样的问题,在对它进行了一段时间的搜索之后,我找到了解决方案,因为由于权限不足而无法安装glibc软件包解决方法是安装节点的旧版本,在我的情况下,我使用的是v6.8:

I had the same problem and after googling it for a while I was able to find a solution, since you cannot install glibc package because of the lack of privileges the workaround would be to install and older version of node, in my case I used v6.8:

nvm install v6.8.0
Now using node v6.8.0 (npm v3.10.8)
Creating default alias: default -> v6.8.0 

我将立即开始测试

这篇关于在Godaddy共享Linux主机上安装Nodejs时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆