pnpm / action-setup

Install pnpm package manager
https://github.com/marketplace/actions/setup-pnpm
MIT License
899 stars 87 forks source link

`ENOENT: no such file or directory, uv_cwd` on self arm64 runner #49

Open Satont opened 2 years ago

Satont commented 2 years ago
Run pnpm/action-setup@v[2](https://github.com/Satont/tsuwari/runs/6951188005?check_suite_focus=true#step:4:2).2.2
  with:
    version: 7
    run_install: false
    dest: ~/setup-pnpm
Running self-installer...
  Error: ENOENT: no such file or directory, uv_cwd
      at process.wrappedCwd (internal/bootstrap/switches/does_own_process_state.js:128:26)
      at process.cwd (/mnt/volume/gh-runners/2/_work/_actions/pnpm/action-setup/v2.2.2/dist/pnpm.js:[3](https://github.com/Satont/tsuwari/runs/6951188005?check_suite_focus=true#step:4:3)2:23)
      at ../../node_modules/.pnpm/get-source@1.0.[4](https://github.com/Satont/tsuwari/runs/6951188005?check_suite_focus=true#step:4:4)2/node_modules/get-source/impl/path.js (/mnt/volume/gh-runners/2/_work/_actions/pnpm/action-setup/v2.2.2/dist/pnpm.js:29678:[5](https://github.com/Satont/tsuwari/runs/6951188005?check_suite_focus=true#step:4:5)8)
      at __require (/mnt/volume/gh-runners/2/_work/_actions/pnpm/action-setup/v2.2.2/dist/pnpm.js:9:44)
      at ../../node_modules/.pnpm/get-source@1.0.42/node_modules/get-source/get-source.js (/mnt/volume/gh-runners/2/_work/_actions/pnpm/action-setup/v2.2.2/dist/pnpm.js:297[6](https://github.com/Satont/tsuwari/runs/6951188005?check_suite_focus=true#step:4:7)6:16)
      at __require (/mnt/volume/gh-runners/2/_work/_actions/pnpm/action-setup/v2.2.2/dist/pnpm.js:9:44)
      at ../../node_modules/.pnpm/stacktracey@1.2.12[7](https://github.com/Satont/tsuwari/runs/6951188005?check_suite_focus=true#step:4:8)/node_modules/stacktracey/stacktracey.js (/mnt/volume/gh-runners/2/_work/_actions/pnpm/action-setup/v2.2.2/dist/pnpm.js:30022:21)
      at __require (/mnt/volume/gh-runners/2/_work/_actions/pnpm/action-setup/v2.2.2/dist/pnpm.js:[9](https://github.com/Satont/tsuwari/runs/6951188005?check_suite_focus=true#step:4:10):44)
      at ../default-reporter/lib/reportError.js (/mnt/volume/gh-runners/2/_work/_actions/pnpm/action-setup/v2.2.2/dist/pnpm.js:302[21](https://github.com/Satont/tsuwari/runs/6951188005?check_suite_focus=true#step:4:22):41)
      at __require (/mnt/volume/gh-runners/2/_work/_actions/pnpm/action-setup/v2.2.2/dist/pnpm.js:9:44) {
    errno: -2,
    code: 'ENOENT',
    syscall: 'uv_cwd'
  }
Error: Something went wrong, self-installer exits with code 1
Installation Completed!

With

steps:
      - name: Checkout
        uses: actions/checkout@v3

      - uses: actions/setup-node@v3
        with:
          node-version: 18
      - uses: pnpm/action-setup@v2.2.2
        name: Install pnpm
        id: pnpm-install
        with:
          version: 7
          run_install: false

On selfhosted ARM64 runner.

Also, the problem is not permanent. That is, sometimes it does not appear.