Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Couldnt install nodejs and npm through docker file #428

Open
Sangeetha06 opened this issue Jan 20, 2024 · 1 comment
Open

Couldnt install nodejs and npm through docker file #428

Sangeetha06 opened this issue Jan 20, 2024 · 1 comment

Comments

@Sangeetha06
Copy link

151.4 Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist

Dockerfile:8

7 | # Install Node.js and npm from the NodeSource repository
8 | >>> RUN curl -sL https://rpm.nodesource.com/setup_14.x | bash -
9 | >>> && yum -y install nodejs
10 |

ERROR: failed to solve: process "/bin/sh -c curl -sL https://rpm.nodesource.com/setup_14.x | bash - && yum -y install nodejs" did not complete successfully: exit code: 1
Hello Team,

I'm getting this error while building image through docker file. Please help

@muhammad-zulqarnain-awan

Try using a different mirror or repository by updating the NodeSource URL in your dockerfile. Sometimes the mirror or repository you are using may have some temporary issues.

Use --enablerepo="nodesource" in the command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants