Couldnt install nodejs and npm through docker file

Open
#428 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
20/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
docker, node.js

Research direction

Start by reproducing the image build at Dockerfile line 8, including the NodeSource setup command and yum install. Inspect the appstream mirror metadata error and the surrounding Dockerfile context; done means the image builds successfully with Node.js and npm installed.

Written by the indexing model from the issue text.

Description

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

Dominant language
JavaScript
Stars
3.1k
Forks
6.4k
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from docker/getting-started

All issues in docker/getting-started

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.