node.js - 如何在 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 的推荐方法是什么以及如何解决上述问题?
谢谢。
解决方案
推荐阅读
- python - 使 KML 文件中的弹出气泡变大
- python - 加权和有向 2D pandas csv 图中从 A 到 B 的最短路径
- jenkins - Jenkins CLI 通过 SSH 和 java -jar:多次执行命令但密码只写一次的配置是什么?
- javascript - Javascript Selenium 将屏幕截图保存在不同的目录中
- proxy - 尝试使用带 VPN 的 Loadrunner 录制移动原生应用程序时遇到问题
- active-directory - Blazor 和 Active Directory - 让它在这里工作与 net core 5 MVC 不同吗?让它与 Azure AD 一起工作有什么不同吗?
- database - OLAP 架构?
- swift - 如何防止日期计时器有负值?- 斯威夫特用户界面
- python - 无法访问 json 文件中的值
- hash - 使用带有和不带有 -n 的 echo 打印不同的哈希值