Skip to content

Project can't be build because of private dependencies and private GitHub registry #7

Description

@sc4l3r

When I try to build the project using make , I'm getting the following error, because the project depends on @keetanetwork/web-ui-utils which is a private package:

npm error code E401
npm error 401 Unauthorized - GET https://npm.pkg.github.com/download/@keetanetwork/web-ui-utils/1.3.10/4a8633f88cdb9192132f06c9500aa2c9ad0da58e - authentication token not provided

Additionally, the web app depends on @keetanetwork/web-ui which is also private:

npm error code E401
npm error 401 Unauthorized - GET https://npm.pkg.github.com/download/@keetanetwork/web-ui/1.3.18/939a5cfae72aaf617c31aa8228d59b6ad177b6ca - authentication token not provided

When I remove that dependency from the package.json file to check whether the rest could be downloaded successfully I'm getting the following error:

npm error code E401
npm error 401 Unauthorized - GET https://npm.pkg.github.com/download/@KeetaNetwork/keetanet-client/0.14.7/c9d8bea8be445cc20dfaca1fd5afed63f7b38fcf - authentication token not provided

This is because in the root of the project the .npmrc defines the registry for @keetanetwork packages to be the private GitHub NPM registry:

@keetanetwork:registry=https://npm.pkg.github.com

Steps to reproduce

  1. Start a fresh Node Docker container to avoid any local authentication configuration

    docker run -it --rm node:24-alpine /bin/ash
  2. Install dependencies, clone, and make the project:

    apk add git make
    git clone https://github.com/KeetaNetwork/explorer.git
    cd explorer
    make
  3. Observe the error npm error code E401

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions