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

install-pnpm Action ignores proxy #53

Open
blowsie opened this issue Sep 12, 2022 · 0 comments
Open

install-pnpm Action ignores proxy #53

blowsie opened this issue Sep 12, 2022 · 0 comments
Assignees

Comments

@blowsie
Copy link

blowsie commented Sep 12, 2022

I tried to set the proxy for the installation via npm config and environment variable and it appears to be ignored

      #- name: Set npm config http-proxy
      #  run: |
      #       npm config set proxy http://proxy:8080
      #       npm config set https-proxy http://proxy:8080
           
      - uses: pnpm/[email protected]
        name: Install pnpm
        id: pnpm-install
        env:
          https_proxy: http://proxy:8080
        with:
          version: 7
          run_install: false

Output

12m 25s
Run pnpm/[email protected].[1](https://github.private.com/private-Global/WebMonoIcons/runs/8641?check_suite_focus=true#step:5:1)
  with:
    version: 7
    run_install: false
    dest: ~/setup-pnpm
  env:
    https_proxy: http://proxy:8080
Running self-installer...
  FetchError: request to https://pnpm.js.org/pnpm.js failed, reason: connect ETIMEDOUT 104.[2](https://github.private.com/private-Global/WebMonoIcons/runs/8641?check_suite_focus=true#step:5:2)6.8.84:44[3](https://github.private.com/private-Global/WebMonoIcons/runs/8641?check_suite_focus=true#step:5:3)
  Error: FetchError: request to https://pnpm.js.org/pnpm.js failed, reason: connect ETIMEDOUT 10[4](https://github.private.com/private-Global/WebMonoIcons/runs/8641?check_suite_focus=true#step:5:4).2[6](https://github.private.com/private-Global/WebMonoIcons/runs/8641?check_suite_focus=true#step:5:6).8.84:443
      at ClientRequest.<anonymous> (/runner/_work/_actions/pnpm/action-setup/v2.0.1/dist/index.js:1:222664)
      at ClientRequest.emit (events.js:314:20)
      at TLSSocket.socketErrorListener (_http_client.js:42[7](https://github.private.com/private-Global/WebMonoIcons/runs/8641?check_suite_focus=true#step:5:7):9)
      at TLSSocket.emit (events.js:314:20)
      at emitErrorNT (internal/streams/destroy.js:92:[8](https://github.private.com/private-Global/WebMonoIcons/runs/8641?check_suite_focus=true#step:5:9))
      at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
      at processTicksAndRejections (internal/process/task_queues.js:84:21) {
    type: 'system',
    errno: 'ETIMEDOUT',
    code: 'ETIMEDOUT'
  }
  Error: The operation was canceled.
@blowsie blowsie changed the title Action ignores proxy install-pnpm Action ignores proxy Sep 12, 2022
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