GithubHelp home page GithubHelp logo

Comments (12)

JesusPaz avatar JesusPaz commented on May 23, 2024 2

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.

timd73 avatar timd73 commented on May 23, 2024

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.

kmonty avatar kmonty commented on May 23, 2024

Experiencing the same issue on Node.js 18.x, nodesource-release-nodistro-1.noarch

from distributions.

acastruc avatar acastruc commented on May 23, 2024

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.

renanfferreira avatar renanfferreira commented on May 23, 2024

I'm facing the same problem

from distributions.

renanfferreira avatar renanfferreira commented on May 23, 2024

This works, thank you

from distributions.

maunzCache avatar maunzCache commented on May 23, 2024

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.

paulrutter avatar paulrutter commented on May 23, 2024

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.

AngelicaFWhite avatar AngelicaFWhite commented on May 23, 2024

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.

tgy avatar tgy commented on May 23, 2024

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.

riosje avatar riosje commented on May 23, 2024

@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.

tgy avatar tgy commented on May 23, 2024

sorry my bad @riosje it works now!

from distributions.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.