Comments (12)
Now you need to use the script to install Node.js:
curl -fsSL https://rpm.nodesource.com/setup_20.x | bash -
yum install -y nodejs
from distributions.
Updated the bug description with steps to solve the problem.
Perhaps it's not a bug.
Leaving open for someone on the nodesource team to review.
from distributions.
Experiencing the same issue on Node.js 18.x, nodesource-release-nodistro-1.noarch
from distributions.
Same with 18.x on Rocky8
I tried
sudo yum install https://rpm.nodesource.com/pub_20.x/nodistro/repo/nodesource-release-nodistro-1.noarch.rpm -y
sudo yum install nodejs -y --setopt=nodesource-nodejs.module_hotfixes=1
and this gave me the error
Downloading Packages:
nodejs-20.10.0-1nodesource.x86_64.rpm 73 MB/s | 36 MB 00:00
Total 73 MB/s | 36 MB 00:00
warning: /var/cache/dnf/nodesource-nodejs-cd8becc9b2a5d74b/packages/nodejs-20.10.0-1nodesource.x86_64.rpm: Header V4 RSA/SHA256 Signature, key ID 3af28a14: NOKEY
Node.js Packages for Linux RPM based distros - 1.6 MB/s | 1.7 kB 00:00
Importing GPG key 0x9B1BE0B4:
Userid : "NSolid [email protected]"
Fingerprint: 6F71 F525 2828 41EE DAF8 51B4 2F59 B5F9 9B1B E0B4
From : /etc/pki/rpm-gpg/NODESOURCE-NSOLID-GPG-SIGNING-KEY-EL
Key imported successfully
Import of key(s) didn't help, wrong key(s)?
Public key for nodejs-20.10.0-1nodesource.x86_64.rpm is not installed. Failing package is: nodejs-2:20.10.0-1nodesource.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/NODESOURCE-NSOLID-GPG-SIGNING-KEY-EL
I changed it to
sudo curl -fsSL https://rpm.nodesource.com/setup_20.x | sudo bash -
sudo dnf install -y nodejs
and that worked did not work. edit: worked (was missing sudo)
Curious if there is a way to make it work with yum?
from distributions.
I'm facing the same problem
from distributions.
This works, thank you
from distributions.
You should prefer dnf over yum in amazonlinux2023, thus make it
curl -fsSL https://rpm.nodesource.com/setup_20.x | bash -
dnf install -y nodejs
https://docs.aws.amazon.com/linux/al2023/ug/package-management.html
from distributions.
I'm facing the same issue recently on AL2023 (since 2024, before it worked fine), and followed the instructions mentioned on https://github.com/nodesource/distributions/wiki/How-to-select-the-Node.js-version-to-install to pin to a specific node version.
Any help is appreciated.
RUN yum install -q -y https://rpm.nodesource.com/pub_20.x/nodistro/repo/nodesource-release-nodistro-1.noarch.rpm && \
yum install -q -y nodejs-20.9.0-1nodesource --setopt=nodesource-nodejs.module_hotfixes=1
Seems like a duplicate of #1755
from distributions.
Our Beanstalk deployment also started failing because of the same issue.
original:
sudo dnf upgrade -y
command: sudo dnf install https://rpm.nodesource.com/pub_18.x/nodistro/repo/nodesource-release-nodistro-1.noarch.rpm -y
changed:
command: curl -fsSL https://rpm.nodesource.com/setup_18.x | bash -
command: dnf install -y nodejs
However it isn't installing node js 18.19.x How can change to request the newer version installation?
Thank you for the support.
from distributions.
this is still an issue. i'm trying to install 21 on Rocky Linux 9 and I get this error as well.
@JesusPaz why did you close this?
from distributions.
@tgy what's the error?
I just tried it and everything works.
run -it rockylinux:9 bash
curl -fsSL https://rpm.nodesource.com/setup_21.x | bash -
yum install -y nodejs
Installed:
nodejs-2:21.6.1-1nodesource.x86_64
Complete!
[root@55c2d9a54553 /]# node -v
v21.6.1
from distributions.
sorry my bad @riosje it works now!
from distributions.
Related Issues (20)
- [ERROR] Node.js 20.x on Debian Installation fail - 503 Service temporarilly unavailable HOT 1
- please do not run `dnf update -y` in setup script HOT 2
- NodeJS 16 is listed as "supported" in README but no instructions HOT 3
- [ERROR] Node.js 20 on Ubuntu20 Installation fail HOT 2
- [ERROR] nodejs 18.19.0 missing in nodesource Debian 12 repository HOT 8
- Add riscv64 Support HOT 1
- [ERROR] Node.js 16 script throws with script/repo deprecated error HOT 6
- [ERROR] Node.js 18.19.0 on AL2023 fails with content-length mismatch HOT 1
- Wiki documentation for pinned node versions causes GPG key conflict. HOT 3
- [ERROR] RPM Mirror Fail HOT 4
- FAQ on scripts and manual install / HOT 3
- Symbolic Release Repositories HOT 2
- [ERROR] Node.js 18 on Ubuntu22.04 cache update fail HOT 5
- [ERROR] npm not available anymore after installing nodejs on Debian HOT 3
- [ERROR] Node.js 20 on Debian buster armv7 fails to run HOT 1
- [ERROR] Node.js 16 on Ubuntu16.04 Installation fails HOT 1
- [ERROR] Node.js 18 on CentOS 7 fails: Requires: libstdc++.so.6(GLIBCXX_3.4.20)(64bit) HOT 3
- [ERROR] Not possible to create apt repo mirror using JFrog artifactory or GCP Artifact Registry HOT 9
- [ERROR] Node.js 20.11.1 on RPM Installation fail HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from distributions.