如何在whm上安装nodejs v16
我想在whm上启用nodejs16但是 在此处输入图片说明 本机上安装了以下冲突。它们将作为此软件包选择的一部分被删除:
nodejs10
并且当我执行以下命令时 node -v
输出:
node: error while loading shared libraries: libbrotlidec.so.1: cannot open shared object file: No such file or directory
如果我启用它,将会出现问题 如何卸载旧的nodejs或将其升级到新版本?
i want enable nodejs16 on whm but
enter image description here
The following conflicts are installed on this machine. They will be removed as part of this package selection:
nodejs10
and When I execute the following command node -v
output:
node: error while loading shared libraries: libbrotlidec.so.1: cannot open shared object file: No such file or directory
If I enable it, there will be a problem
how can i uninstall old nodejs or upgrade it to new version?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我总是使用操作系统的包管理器来安装 NodeJS,而不是通过 EA4 使用预定义的包。例如,要安装 Node 版本 16,您可以简单地使用以下命令:
yum install -y gcc-c++ make
curl -sL https://rpm.nodesource.com/setup_16.x | sudo -E bash -
yum install nodejs
但首先,请确保删除您可能已安装的任何以前的软件包。顺便说一句,如果您正在寻找一种更简单的方法来为您的帐户使用 NodeJS,或者如果您需要为每个帐户提供切换/设置自己的节点版本的能力,我建议您使用 CloudLinux 操作系统并使用 NodeJS 选择器他们提供的。
I would always install NodeJS using the package manager of your operating system, instead of using the pre-defined package through EA4. For example, to install Node version 16, you can simply use the following commands:
yum install -y gcc-c++ make
curl -sL https://rpm.nodesource.com/setup_16.x | sudo -E bash -
yum install nodejs
But first, make sure to remove any previous packages that you may have installed. By the way, if you are looking for an even easier way to have NodeJS for your accounts or if you need to provide each account the ability to switch/set their own node version, I would suggest going for CloudLinux OS and using the NodeJS Selector that they provide.
对我有用的是安装 brotli
What worked for me was installing brotli