[GH-ISSUE #159] Unable to install Node #104

Closed
opened 2026-03-01 21:40:08 +03:00 by kerem · 2 comments
Owner

Originally created by @odedpeer on GitHub (Mar 16, 2020).
Original GitHub issue: https://github.com/nektos/act/issues/159

STR:
Run act on the following actions

name: CI
jobs:
  ci:
    runs-on: ubuntu-latest
    steps:
      - name: 'Checkout'
        uses: actions/checkout@v2
      - name: 'Install Node.js'
        uses: actions/setup-node@v1
        with:
          node-version: 12.x
          registry-url: https://npm.pkg.github.com

Fails with:

[CI/ci] Extracting content from '/var/folders/08/yzwsnxm9337brggy65fnf5ph0000gp/T/act952952145' to '/actions/'
[CI/ci] Exec command '[node /actions/actions-setup-node@v1/dist/index.js]'
[CI/ci]   💬  ::debug::isExplicit:
[CI/ci]   💬  ::debug::explicit? false
[CI/ci]   💬  ::debug::evaluating 0 versions
[CI/ci]   💬  ::debug::match not found
[CI/ci]   💬  ::debug::evaluating 381 versions
[CI/ci]   💬  ::debug::matched: v12.16.1
[CI/ci]   💬  ::debug::isExplicit: 12.16.1
[CI/ci]   💬  ::debug::explicit? true
[CI/ci]   💬  ::debug::checking cache: /opt/hostedtoolcache/node/12.16.1/x64
[CI/ci]   💬  ::debug::not found
[CI/ci]   ❗  ::error::Expected RUNNER_TEMP to be defined
[CI/ci]   ❌  Failure - Install Node.js
DEBU[0017] exit with `FAILURE`: 1
Originally created by @odedpeer on GitHub (Mar 16, 2020). Original GitHub issue: https://github.com/nektos/act/issues/159 STR: Run act on the following actions ``` name: CI jobs: ci: runs-on: ubuntu-latest steps: - name: 'Checkout' uses: actions/checkout@v2 - name: 'Install Node.js' uses: actions/setup-node@v1 with: node-version: 12.x registry-url: https://npm.pkg.github.com ``` Fails with: ``` [CI/ci] Extracting content from '/var/folders/08/yzwsnxm9337brggy65fnf5ph0000gp/T/act952952145' to '/actions/' [CI/ci] Exec command '[node /actions/actions-setup-node@v1/dist/index.js]' [CI/ci] 💬 ::debug::isExplicit: [CI/ci] 💬 ::debug::explicit? false [CI/ci] 💬 ::debug::evaluating 0 versions [CI/ci] 💬 ::debug::match not found [CI/ci] 💬 ::debug::evaluating 381 versions [CI/ci] 💬 ::debug::matched: v12.16.1 [CI/ci] 💬 ::debug::isExplicit: 12.16.1 [CI/ci] 💬 ::debug::explicit? true [CI/ci] 💬 ::debug::checking cache: /opt/hostedtoolcache/node/12.16.1/x64 [CI/ci] 💬 ::debug::not found [CI/ci] ❗ ::error::Expected RUNNER_TEMP to be defined [CI/ci] ❌ Failure - Install Node.js DEBU[0017] exit with `FAILURE`: 1 ```
kerem closed this issue 2026-03-01 21:40:09 +03:00
Author
Owner

@reinismu commented on GitHub (Mar 17, 2020):

This is what I did (added env RUNNER_TEMP)

    steps:
      - uses: actions/checkout@v2
      - name: Use Node.js 12.x
        uses: actions/setup-node@v1
        with:
          node-version: "12.x"
        env:
          RUNNER_TEMP: "/tmp/"
<!-- gh-comment-id:600260763 --> @reinismu commented on GitHub (Mar 17, 2020): This is what I did (added env `RUNNER_TEMP`) ``` steps: - uses: actions/checkout@v2 - name: Use Node.js 12.x uses: actions/setup-node@v1 with: node-version: "12.x" env: RUNNER_TEMP: "/tmp/" ```
Author
Owner

@odedpeer commented on GitHub (Mar 18, 2020):

🤦‍♂ I was trying with shell env variables, didn't think of adding them to env.
Thanks!

<!-- gh-comment-id:600444096 --> @odedpeer commented on GitHub (Mar 18, 2020): 🤦‍♂ I was trying with shell env variables, didn't think of adding them to `env`. Thanks!
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#104
No description provided.