首页 > 解决方案 > 如何在 RHEL 7.5 服务器上安装 NodeJS

问题描述

如何在 RHEL 服务器 7.5 上安装 NodeJS?

我有root权限并首先尝试:

curl -sL https://rpm.nodesource.com/setup_8.x | bash -

然后:

yum install -y nodejs

得到错误:

Loaded plugins: amazon-id, product-id, rhui-lb, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
https://rpm.nodesource.com/pub_8.x/el/7/x86_64/repodata/repomd.xml: [Errno 14] curl#22 - "The requested URL returned error: 407"
Trying other mirror.
No package nodejs available.
Error: Nothing to do

在 RHEL/CentOS 服务器上安装 NodeJS 的推荐方法是什么以及如何解决上述问题?

谢谢。

标签: node.jslinuxcentosyumrhel

解决方案


推荐阅读