[GH-ISSUE #2057] npm package "http-client" does not exist under owner "actions" #990

Closed
opened 2026-03-01 21:47:59 +03:00 by kerem · 3 comments
Owner

Originally created by @ospfranco on GitHub (Oct 20, 2023).
Original GitHub issue: https://github.com/nektos/act/issues/2057

Bug report info

I'm building an Android with React Native app. My action calls another script (Fastlane) internally. Part of building the app is installing JavaScript dependencies. This is done via `npm i`. However, the installation process errors out after a while with this error:


| npm WARN skipping integrity check for git dependency ssh://git@github.com/Expensify/simply-deferred.git
| npm WARN skipping integrity check for git dependency ssh://git@github.com/Expensify/react-native-picker-select.git
| npm WARN skipping integrity check for git dependency ssh://git@github.com/Expensify/react-native-image-size.git
| npm WARN skipping integrity check for git dependency ssh://git@github.com/Expensify/expensify-common.git
| npm WARN skipping integrity check for git dependency ssh://git@github.com/Expensify/react-native-image-manipulator.git
| npm WARN deprecated uglify-es@3.3.9: support for ECMAScript is superseded by `uglify-js` as of v3.13.0
| npm WARN deprecated dommatrix@1.0.3: dommatrix is no longer maintained. Please use @thednp/dommatrix.
| npm WARN deprecated @types/pusher-js@5.1.0: This is a stub types definition. pusher-js provides its own type definitions, so you do not need this installed.
| npm WARN deprecated @types/concurrently@7.0.0: This is a stub types definition. concurrently provides its own type definitions, so you do not need this installed.
| npm ERR! code E404
| npm ERR! 404 Not Found - GET https://npm.pkg.github.com/@actions%2fhttp-client - npm package "http-client" does not exist under owner "actions"
| npm ERR! 404
| npm ERR! 404  '@actions/http-client@2.0.1' is not in this registry.
| npm ERR! 404
| npm ERR! 404 Note that you can also install from a
| npm ERR! 404 tarball, folder, http url, or git url.
|
| npm ERR! A complete log of this run can be found in:
| npm ERR!     /root/.npm/_logs/2023-10-20T06_27_57_927Z-debug-0.log

Am I doing something wrong, or is some sort of proxy when running on the cloud that gets setup and allows to fetch this package?



### Command used with act

```sh
act -W .github/workflows/e2ePerformanceTests.yml -j buildBaseline --container-architecture linux/amd64 -P ubuntu-latest-xl=nektos/act-environments-ubuntu:18.04

Describe issue

Npm install should succeed without an error.

No response

Workflow content

name: E2E Performance Tests

on:
  workflow_call:
    inputs:
      PR_NUMBER:
        description: A PR number to run performance tests against. If the PR is already merged, the merge commit will be used. If not, the PR will be merged locally before running the performance tests.
        type: string
        required: true

  workflow_dispatch:
    inputs:
      PR_NUMBER:
        description: A PR number to run performance tests against. If the PR is already merged, the merge commit will be used. If not, the PR will be merged locally before running the performance tests.
        type: string
        required: true

jobs:
  buildBaseline:
    runs-on: ubuntu-latest-xl
    name: Build apk from latest release as a baseline
    outputs:
      VERSION: ${{ steps.getMostRecentRelease.outputs.VERSION }}
    steps:
      - uses: actions/checkout@v3

      - name: Configure MapBox SDK
        run: ./scripts/setup-mapbox-sdk.sh ${{ secrets.MAPBOX_SDK_DOWNLOAD_TOKEN }}

      - name: Build APK
        uses: Expensify/App/.github/actions/composite/buildAndroidAPK@main
        with:
          ARTIFACT_NAME: baseline-apk-${{ steps.getMostRecentRelease.outputs.VERSION }}

Relevant log output

[E2E Performance Tests/Build apk from latest release as a baseline]   💬  ::debug::Running command npm ci on linux using shell bash
| npm WARN ERESOLVE overriding peer dependency
| npm WARN While resolving: react-element-to-jsx-string@14.3.4
| npm WARN Found: react@18.2.0
| npm WARN node_modules/react
| npm WARN   react@"18.2.0" from the root project
| npm WARN   161 more (@callstack/reassure-measure, ...)
| npm WARN
| npm WARN Could not resolve dependency:
| npm WARN peer react@"^0.14.8 || ^15.0.1 || ^16.0.0 || ^17.0.1" from react-element-to-jsx-string@14.3.4
| npm WARN node_modules/@storybook/react/node_modules/react-element-to-jsx-string
| npm WARN   react-element-to-jsx-string@"^14.3.4" from @storybook/react@6.5.10
| npm WARN   node_modules/@storybook/react
| npm WARN
| npm WARN Conflicting peer dependency: react@17.0.2
| npm WARN node_modules/react
| npm WARN   peer react@"^0.14.8 || ^15.0.1 || ^16.0.0 || ^17.0.1" from react-element-to-jsx-string@14.3.4
| npm WARN   node_modules/@storybook/react/node_modules/react-element-to-jsx-string
| npm WARN     react-element-to-jsx-string@"^14.3.4" from @storybook/react@6.5.10
| npm WARN     node_modules/@storybook/react
| npm WARN ERESOLVE overriding peer dependency
| npm WARN While resolving: react-element-to-jsx-string@14.3.4
| npm WARN Found: react-dom@18.1.0
| npm WARN node_modules/react-dom
| npm WARN   react-dom@"18.1.0" from the root project
| npm WARN   76 more (@expensify/react-native-web, @floating-ui/react-dom, ...)
| npm WARN
| npm WARN Could not resolve dependency:
| npm WARN peer react-dom@"^0.14.8 || ^15.0.1 || ^16.0.0 || ^17.0.1" from react-element-to-jsx-string@14.3.4
| npm WARN node_modules/@storybook/react/node_modules/react-element-to-jsx-string
| npm WARN   react-element-to-jsx-string@"^14.3.4" from @storybook/react@6.5.10
| npm WARN   node_modules/@storybook/react
| npm WARN
| npm WARN Conflicting peer dependency: react-dom@17.0.2
| npm WARN node_modules/react-dom
| npm WARN   peer react-dom@"^0.14.8 || ^15.0.1 || ^16.0.0 || ^17.0.1" from react-element-to-jsx-string@14.3.4
| npm WARN   node_modules/@storybook/react/node_modules/react-element-to-jsx-string
| npm WARN     react-element-to-jsx-string@"^14.3.4" from @storybook/react@6.5.10
| npm WARN     node_modules/@storybook/react
| npm WARN skipping integrity check for git dependency ssh://git@github.com/Expensify/simply-deferred.git
| npm WARN skipping integrity check for git dependency ssh://git@github.com/Expensify/react-native-picker-select.git
| npm WARN skipping integrity check for git dependency ssh://git@github.com/Expensify/react-native-image-size.git
| npm WARN skipping integrity check for git dependency ssh://git@github.com/Expensify/expensify-common.git
| npm WARN skipping integrity check for git dependency ssh://git@github.com/Expensify/react-native-image-manipulator.git
| npm WARN deprecated uglify-es@3.3.9: support for ECMAScript is superseded by `uglify-js` as of v3.13.0
| npm WARN deprecated dommatrix@1.0.3: dommatrix is no longer maintained. Please use @thednp/dommatrix.
| npm WARN deprecated @types/pusher-js@5.1.0: This is a stub types definition. pusher-js provides its own type definitions, so you do not need this installed.
| npm WARN deprecated @types/concurrently@7.0.0: This is a stub types definition. concurrently provides its own type definitions, so you do not need this installed.
| npm ERR! code E404
| npm ERR! 404 Not Found - GET https://npm.pkg.github.com/@actions%2fhttp-client - npm package "http-client" does not exist under owner "actions"
| npm ERR! 404
| npm ERR! 404  '@actions/http-client@2.0.1' is not in this registry.
| npm ERR! 404
| npm ERR! 404 Note that you can also install from a
| npm ERR! 404 tarball, folder, http url, or git url.
|
| npm ERR! A complete log of this run can be found in:
| npm ERR!     /root/.npm/_logs/2023-10-20T06_27_57_927Z-debug-0.log

Additional information

No response

Originally created by @ospfranco on GitHub (Oct 20, 2023). Original GitHub issue: https://github.com/nektos/act/issues/2057 ### Bug report info ```plain text I'm building an Android with React Native app. My action calls another script (Fastlane) internally. Part of building the app is installing JavaScript dependencies. This is done via `npm i`. However, the installation process errors out after a while with this error: | npm WARN skipping integrity check for git dependency ssh://git@github.com/Expensify/simply-deferred.git | npm WARN skipping integrity check for git dependency ssh://git@github.com/Expensify/react-native-picker-select.git | npm WARN skipping integrity check for git dependency ssh://git@github.com/Expensify/react-native-image-size.git | npm WARN skipping integrity check for git dependency ssh://git@github.com/Expensify/expensify-common.git | npm WARN skipping integrity check for git dependency ssh://git@github.com/Expensify/react-native-image-manipulator.git | npm WARN deprecated uglify-es@3.3.9: support for ECMAScript is superseded by `uglify-js` as of v3.13.0 | npm WARN deprecated dommatrix@1.0.3: dommatrix is no longer maintained. Please use @thednp/dommatrix. | npm WARN deprecated @types/pusher-js@5.1.0: This is a stub types definition. pusher-js provides its own type definitions, so you do not need this installed. | npm WARN deprecated @types/concurrently@7.0.0: This is a stub types definition. concurrently provides its own type definitions, so you do not need this installed. | npm ERR! code E404 | npm ERR! 404 Not Found - GET https://npm.pkg.github.com/@actions%2fhttp-client - npm package "http-client" does not exist under owner "actions" | npm ERR! 404 | npm ERR! 404 '@actions/http-client@2.0.1' is not in this registry. | npm ERR! 404 | npm ERR! 404 Note that you can also install from a | npm ERR! 404 tarball, folder, http url, or git url. | | npm ERR! A complete log of this run can be found in: | npm ERR! /root/.npm/_logs/2023-10-20T06_27_57_927Z-debug-0.log ``` Am I doing something wrong, or is some sort of proxy when running on the cloud that gets setup and allows to fetch this package? ``` ### Command used with act ```sh act -W .github/workflows/e2ePerformanceTests.yml -j buildBaseline --container-architecture linux/amd64 -P ubuntu-latest-xl=nektos/act-environments-ubuntu:18.04 ``` ### Describe issue Npm install should succeed without an error. ### Link to GitHub repository _No response_ ### Workflow content ```yml name: E2E Performance Tests on: workflow_call: inputs: PR_NUMBER: description: A PR number to run performance tests against. If the PR is already merged, the merge commit will be used. If not, the PR will be merged locally before running the performance tests. type: string required: true workflow_dispatch: inputs: PR_NUMBER: description: A PR number to run performance tests against. If the PR is already merged, the merge commit will be used. If not, the PR will be merged locally before running the performance tests. type: string required: true jobs: buildBaseline: runs-on: ubuntu-latest-xl name: Build apk from latest release as a baseline outputs: VERSION: ${{ steps.getMostRecentRelease.outputs.VERSION }} steps: - uses: actions/checkout@v3 - name: Configure MapBox SDK run: ./scripts/setup-mapbox-sdk.sh ${{ secrets.MAPBOX_SDK_DOWNLOAD_TOKEN }} - name: Build APK uses: Expensify/App/.github/actions/composite/buildAndroidAPK@main with: ARTIFACT_NAME: baseline-apk-${{ steps.getMostRecentRelease.outputs.VERSION }} ``` ### Relevant log output ```sh [E2E Performance Tests/Build apk from latest release as a baseline] 💬 ::debug::Running command npm ci on linux using shell bash | npm WARN ERESOLVE overriding peer dependency | npm WARN While resolving: react-element-to-jsx-string@14.3.4 | npm WARN Found: react@18.2.0 | npm WARN node_modules/react | npm WARN react@"18.2.0" from the root project | npm WARN 161 more (@callstack/reassure-measure, ...) | npm WARN | npm WARN Could not resolve dependency: | npm WARN peer react@"^0.14.8 || ^15.0.1 || ^16.0.0 || ^17.0.1" from react-element-to-jsx-string@14.3.4 | npm WARN node_modules/@storybook/react/node_modules/react-element-to-jsx-string | npm WARN react-element-to-jsx-string@"^14.3.4" from @storybook/react@6.5.10 | npm WARN node_modules/@storybook/react | npm WARN | npm WARN Conflicting peer dependency: react@17.0.2 | npm WARN node_modules/react | npm WARN peer react@"^0.14.8 || ^15.0.1 || ^16.0.0 || ^17.0.1" from react-element-to-jsx-string@14.3.4 | npm WARN node_modules/@storybook/react/node_modules/react-element-to-jsx-string | npm WARN react-element-to-jsx-string@"^14.3.4" from @storybook/react@6.5.10 | npm WARN node_modules/@storybook/react | npm WARN ERESOLVE overriding peer dependency | npm WARN While resolving: react-element-to-jsx-string@14.3.4 | npm WARN Found: react-dom@18.1.0 | npm WARN node_modules/react-dom | npm WARN react-dom@"18.1.0" from the root project | npm WARN 76 more (@expensify/react-native-web, @floating-ui/react-dom, ...) | npm WARN | npm WARN Could not resolve dependency: | npm WARN peer react-dom@"^0.14.8 || ^15.0.1 || ^16.0.0 || ^17.0.1" from react-element-to-jsx-string@14.3.4 | npm WARN node_modules/@storybook/react/node_modules/react-element-to-jsx-string | npm WARN react-element-to-jsx-string@"^14.3.4" from @storybook/react@6.5.10 | npm WARN node_modules/@storybook/react | npm WARN | npm WARN Conflicting peer dependency: react-dom@17.0.2 | npm WARN node_modules/react-dom | npm WARN peer react-dom@"^0.14.8 || ^15.0.1 || ^16.0.0 || ^17.0.1" from react-element-to-jsx-string@14.3.4 | npm WARN node_modules/@storybook/react/node_modules/react-element-to-jsx-string | npm WARN react-element-to-jsx-string@"^14.3.4" from @storybook/react@6.5.10 | npm WARN node_modules/@storybook/react | npm WARN skipping integrity check for git dependency ssh://git@github.com/Expensify/simply-deferred.git | npm WARN skipping integrity check for git dependency ssh://git@github.com/Expensify/react-native-picker-select.git | npm WARN skipping integrity check for git dependency ssh://git@github.com/Expensify/react-native-image-size.git | npm WARN skipping integrity check for git dependency ssh://git@github.com/Expensify/expensify-common.git | npm WARN skipping integrity check for git dependency ssh://git@github.com/Expensify/react-native-image-manipulator.git | npm WARN deprecated uglify-es@3.3.9: support for ECMAScript is superseded by `uglify-js` as of v3.13.0 | npm WARN deprecated dommatrix@1.0.3: dommatrix is no longer maintained. Please use @thednp/dommatrix. | npm WARN deprecated @types/pusher-js@5.1.0: This is a stub types definition. pusher-js provides its own type definitions, so you do not need this installed. | npm WARN deprecated @types/concurrently@7.0.0: This is a stub types definition. concurrently provides its own type definitions, so you do not need this installed. | npm ERR! code E404 | npm ERR! 404 Not Found - GET https://npm.pkg.github.com/@actions%2fhttp-client - npm package "http-client" does not exist under owner "actions" | npm ERR! 404 | npm ERR! 404 '@actions/http-client@2.0.1' is not in this registry. | npm ERR! 404 | npm ERR! 404 Note that you can also install from a | npm ERR! 404 tarball, folder, http url, or git url. | | npm ERR! A complete log of this run can be found in: | npm ERR! /root/.npm/_logs/2023-10-20T06_27_57_927Z-debug-0.log ``` ### Additional information _No response_
kerem 2026-03-01 21:47:59 +03:00
  • closed this issue
  • added the
    kind/bug
    label
Author
Owner

@ChristopherHX commented on GitHub (Oct 20, 2023):

You might got confused by the old readme files that the image can be still used meaningfully, old images won't work forever.

-P ubuntu-latest-xl=nektos/act-environments-ubuntu:18.04

  • That is an very old image (2 years+ no updates)
  • ubuntu-latest on GitHub is ubuntu 22.04 not 18.04
  • node, npm etc. of that images are years behind

Using catthehacker/ubuntu:full-latest (mirror) would bring you into the year 2023 with a copy of the files from ubuntu-latest GitHub hosted runners. (updated automatically, the image is rolling and is big)

<!-- gh-comment-id:1772626699 --> @ChristopherHX commented on GitHub (Oct 20, 2023): You might got confused by the old readme files that the image can be still used meaningfully, old images won't work forever. > `-P ubuntu-latest-xl=nektos/act-environments-ubuntu:18.04` - That is an very old image (2 years+ no updates) - ubuntu-latest on GitHub is ubuntu 22.04 not 18.04 - node, npm etc. of that images are years behind Using `catthehacker/ubuntu:full-latest` (mirror) would bring you into the year 2023 with a copy of the files from ubuntu-latest GitHub hosted runners. (updated automatically, the image is rolling and is big)
Author
Owner

@ospfranco commented on GitHub (Oct 20, 2023):

Perfect! yeah, I just took it from the readme since I didn't want the 20gb image, but I will try the latest image. thanks!

<!-- gh-comment-id:1772637465 --> @ospfranco commented on GitHub (Oct 20, 2023): Perfect! yeah, I just took it from the readme since I didn't want the 20gb image, but I will try the latest image. thanks!
Author
Owner

@ChristopherHX commented on GitHub (Oct 22, 2023):

I didn't want the 20gb image

The act-latest (1-2GB), js-latest (1-2GB), custom-latest (should also have a moderate size), full-latest (currently ca. 17GB data to download, this is a decompression bomb of 53.1GB) are step wise bigger.

The full-latest is mirrored from my Runner Image Upload script (https://github.com/ChristopherHX/runner-image-blobs), you can also only download parts of the largest image.

E.g. ghcr.io/christopherhx/runner-images:ubuntu22-runner-medium-latest is a lite variant of ghcr.io/christopherhx/runner-images:ubuntu22-runner-large-latest / full-latest.

You can also obtain a copy of the failing workflow

For example different tags of the same image might be
ubuntu22-runner-medium-20231001.1.0 (20231001.1.0 is image version as published by GitHub)
ubuntu22-runner-medium-6450215291.1 (6450215291.1 is <run_id>.<run_attempt>)
ubuntu22-runner-medium-latest (latest is a rolling tag and is updated once the image version as published by GitHub changed, may take 7 days for be uploaded by a cron job)

For example the Setup Job has a version like 20231001.1.0, it is possible that you can pull the image with this in the tag.

<!-- gh-comment-id:1774073672 --> @ChristopherHX commented on GitHub (Oct 22, 2023): > I didn't want the 20gb image The act-latest (1-2GB), js-latest (1-2GB), custom-latest (should also have a moderate size), full-latest (currently ca. 17GB data to download, this is a decompression bomb of 53.1GB) are step wise bigger. The full-latest is mirrored from my Runner Image Upload script (https://github.com/ChristopherHX/runner-image-blobs), you can also only download parts of the largest image. E.g. `ghcr.io/christopherhx/runner-images:ubuntu22-runner-medium-latest` is a lite variant of `ghcr.io/christopherhx/runner-images:ubuntu22-runner-large-latest` / full-latest. You can also obtain a copy of the failing workflow For example different tags of the same image might be [ubuntu22-runner-medium-20231001.1.0](https://github.com/users/ChristopherHX/packages/container/runner-images/135418268?tag=ubuntu22-runner-medium-20231001.1.0) (`20231001.1.0` is image version as published by GitHub) [ubuntu22-runner-medium-6450215291.1](https://github.com/users/ChristopherHX/packages/container/runner-images/135418268?tag=ubuntu22-runner-medium-6450215291.1) (`6450215291.1` is `<run_id>.<run_attempt>`) [ubuntu22-runner-medium-latest](https://github.com/users/ChristopherHX/packages/container/runner-images/135418268?tag=ubuntu22-runner-medium-latest) (`latest` is a rolling tag and is updated once the image version as published by GitHub changed, may take 7 days for be uploaded by a cron job) For example the Setup Job has a version like `20231001.1.0`, it is possible that you can pull the image with this in the tag.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/act#990
No description provided.