[GH-ISSUE #520] " Failure - actions/setup-node@v1" - Using Chocolatey Outdated Version #352

Closed
opened 2026-03-01 21:42:36 +03:00 by kerem · 7 comments
Owner

Originally created by @vinicioslc on GitHub (Feb 6, 2021).
Original GitHub issue: https://github.com/nektos/act/issues/520

Hi im using Windows 10 with:
nvm: 12.18.3
docker engine: 20.10.2
When i run the example yml i get the following output

The example used to test.

name: CI
on: push

jobs:
  test:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-node@v1
      - run: npm install
      - run: npm test

Console output (in cmder but prints the same in powershell)
image

When I run act -v

See output

λ act -v
time="2021-02-06T11:46:58-03:00" level=debug msg="Loading environment from C:\\Users\\******\\Documents\\GitHub\\******\\repository-folder\\.env"
time="2021-02-06T11:46:58-03:00" level=debug msg="Loading secrets from "
time="2021-02-06T11:46:58-03:00" level=debug msg="Loading workflows from 'C:\\Users\\******\\Documents\\GitHub\\******\\repository-folder\\.github\\workflows'" time="2021-02-06T11:46:58-03:00" level=debug msg="Reading workflow 'C:\\Users\\******\\Documents\\GitHub\\******\\repository-folder\\.github\\workflows\\node.js.yml'"
time="2021-02-06T11:46:58-03:00" level=debug msg="Planning event: push"
time="2021-02-06T11:46:58-03:00" level=debug msg="Loading slug from git directory 'C:\\Users\\******\\Documents\\GitHub\\******\\repository-folder\\.git'"
time="2021-02-06T11:46:58-03:00" level=debug msg="Found revision: 0c428ff7d03f6b458fd8584b4b2b9c67f485288b\n"
time="2021-02-06T11:46:58-03:00" level=debug msg="Loading revision from git directory 'C:\\Users\\******\\Documents\\GitHub\\******\\repository-folder\\.git'"
time="2021-02-06T11:46:58-03:00" level=debug msg="Found revision: 0c428ff7d03f6b458fd8584b4b2b9c67f485288b\n"
time="2021-02-06T11:46:58-03:00" level=debug msg="HEAD points to '0c428ff7d03f6b458fd8584b4b2b9c67f485288b'"
time="2021-02-06T11:46:58-03:00" level=debug msg="HEAD matches \\refs\\heads\\main"
time="2021-02-06T11:46:58-03:00" level=debug msg="using github ref: \\refs\\heads\\main"
time="2021-02-06T11:46:58-03:00" level=debug msg="context env => map[]"
[CI/test] �  Start image=node:12.6-buster-slim
time="2021-02-06T11:46:58-03:00" level=debug msg="Loading slug from git directory 'C:\\Users\\******\\Documents\\GitHub\\******\\repository-folder\\.git'"
time="2021-02-06T11:46:58-03:00" level=debug msg="Found revision: 0c428ff7d03f6b458fd8584b4b2b9c67f485288b\n"
time="2021-02-06T11:46:58-03:00" level=debug msg="Loading revision from git directory 'C:\\Users\\******\\Documents\\GitHub\\******\\repository-folder\\.git'"
time="2021-02-06T11:46:58-03:00" level=debug msg="Found revision: 0c428ff7d03f6b458fd8584b4b2b9c67f485288b\n"
time="2021-02-06T11:46:58-03:00" level=debug msg="HEAD points to '0c428ff7d03f6b458fd8584b4b2b9c67f485288b'"
time="2021-02-06T11:46:58-03:00" level=debug msg="HEAD matches \\refs\\heads\\main"
time="2021-02-06T11:46:58-03:00" level=debug msg="using github ref: \\refs\\heads\\main"
[CI/test]   �  docker pull node:12.6-buster-slim
time="2021-02-06T11:46:58-03:00" level=debug msg="Image exists? true"
[CI/test] Removed container: da712143eb2a047740d5b39a2cadba5ebfbd4edeea186dc481460b8a0c221555
[CI/test]   �  docker create image=node:12.6-buster-slim entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[CI/test] Created container name=act-CI-test id=015e7c84303aaa5b5e0461d14d060f05a6a853596f7483c5a050b3a2dc4d44da from image node:12.6-buster-slim
[CI/test] ENV ==> [RUNNER_TOOL_CACHE=/opt/hostedtoolcache RUNNER_OS=Linux RUNNER_TEMP=/tmp]
[CI/test]   �  docker run image=node:12.6-buster-slim entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[]
[CI/test] Starting container: 015e7c84303aaa5b5e0461d14d060f05a6a853596f7483c5a050b3a2dc4d44da
[CI/test] Started container: 015e7c84303aaa5b5e0461d14d060f05a6a853596f7483c5a050b3a2dc4d44da
[CI/test]   �  docker cp src=C:\Users\******\Documents\GitHub\******\repository-folder/. dst=\github\workspace
[CI/test] Exec command '[mkdir -p \github\workspace]'
time="2021-02-06T11:47:04-03:00" level=debug msg="Writing tarball C:\\Users\\VINICI~1\\AppData\\Local\\Temp\\act355255767 from C:\\Users\\******\\Documents\\GitHub\\******\\repository-folder/."
time="2021-02-06T11:47:04-03:00" level=debug msg="Stripping prefix:C:\\Users\\******\\Documents\\GitHub\\******\\repository-folder\\ src:C:\\Users\\******\\Documents\\GitHub\\******\\repository-folder/."
[CI/test] Extracting content from 'C:\Users\VINICI~1\AppData\Local\Temp\act355255767' to '\github\workspace'
time="2021-02-06T11:47:07-03:00" level=debug msg="Writing entry to tarball workflow/event.json len:2"
time="2021-02-06T11:47:07-03:00" level=debug msg="Writing entry to tarball home/.act len:0"
[CI/test] Extracting content to '/github/'
time="2021-02-06T11:47:07-03:00" level=debug msg="Loading slug from git directory 'C:\\Users\\******\\Documents\\GitHub\\******\\repository-folder\\.git'"
time="2021-02-06T11:47:07-03:00" level=debug msg="Found revision: 0c428ff7d03f6b458fd8584b4b2b9c67f485288b\n"
time="2021-02-06T11:47:07-03:00" level=debug msg="Loading revision from git directory 'C:\\Users\\******\\Documents\\GitHub\\******\\repository-folder\\.git'"
time="2021-02-06T11:47:07-03:00" level=debug msg="Found revision: 0c428ff7d03f6b458fd8584b4b2b9c67f485288b\n"
time="2021-02-06T11:47:07-03:00" level=debug msg="HEAD points to '0c428ff7d03f6b458fd8584b4b2b9c67f485288b'"
time="2021-02-06T11:47:07-03:00" level=debug msg="HEAD matches \\refs\\heads\\main"
time="2021-02-06T11:47:07-03:00" level=debug msg="using github ref: \\refs\\heads\\main"
time="2021-02-06T11:47:07-03:00" level=debug msg="setupEnv => map[GITHUB_ACTION:0 GITHUB_ACTIONS:true GITHUB_ACTOR:nektos/act GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/github/workflow/event.json GITHUB_REF:\\refs\\heads\\main GITHUB_REPOSITORY:******/repository-folder GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SHA:0c428ff7d03f6b458fd8584b4b2b9c67f485288b GITHUB_TOKEN: GITHUB_WORKFLOW:CI GITHUB_WORKSPACE:/github/workspace HOME:/github/home]"
time="2021-02-06T11:47:07-03:00" level=debug msg="Loading slug from git directory 'C:\\Users\\******\\Documents\\GitHub\\******\\repository-folder\\.git'"
time="2021-02-06T11:47:07-03:00" level=debug msg="Found revision: 0c428ff7d03f6b458fd8584b4b2b9c67f485288b\n"
time="2021-02-06T11:47:07-03:00" level=debug msg="Loading revision from git directory 'C:\\Users\\******\\Documents\\GitHub\\******\\repository-folder\\.git'"
time="2021-02-06T11:47:07-03:00" level=debug msg="Found revision: 0c428ff7d03f6b458fd8584b4b2b9c67f485288b\n"
time="2021-02-06T11:47:07-03:00" level=debug msg="HEAD points to '0c428ff7d03f6b458fd8584b4b2b9c67f485288b'"
time="2021-02-06T11:47:07-03:00" level=debug msg="HEAD matches \\refs\\heads\\main"
time="2021-02-06T11:47:07-03:00" level=debug msg="using github ref: \\refs\\heads\\main"
time="2021-02-06T11:47:07-03:00" level=debug msg="context env => map[]"
time="2021-02-06T11:47:07-03:00" level=debug msg="context env => map[GITHUB_ACTION:0 GITHUB_ACTIONS:true GITHUB_ACTOR:nektos/act GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/github/workflow/event.json GITHUB_REF:\\refs\\heads\\main GITHUB_REPOSITORY:******/repository-folder GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SHA:0c428ff7d03f6b458fd8584b4b2b9c67f485288b GITHUB_TOKEN: GITHUB_WORKFLOW:CI GITHUB_WORKSPACE:/github/workspace HOME:/github/home]"
[CI/test] ⭐  Run actions/checkout@v2
time="2021-02-06T11:47:07-03:00" level=debug msg="Loading slug from git directory 'C:\\Users\\******\\Documents\\GitHub\\******\\repository-folder\\.git'"
time="2021-02-06T11:47:07-03:00" level=debug msg="Found revision: 0c428ff7d03f6b458fd8584b4b2b9c67f485288b\n"
time="2021-02-06T11:47:07-03:00" level=debug msg="Loading revision from git directory 'C:\\Users\\******\\Documents\\GitHub\\******\\repository-folder\\.git'"
time="2021-02-06T11:47:07-03:00" level=debug msg="Found revision: 0c428ff7d03f6b458fd8584b4b2b9c67f485288b\n"
time="2021-02-06T11:47:07-03:00" level=debug msg="HEAD points to '0c428ff7d03f6b458fd8584b4b2b9c67f485288b'"
time="2021-02-06T11:47:07-03:00" level=debug msg="HEAD matches \\refs\\heads\\main"
time="2021-02-06T11:47:07-03:00" level=debug msg="using github ref: \\refs\\heads\\main"
[CI/test] Skipping actions/checkout
[CI/test]   ✅  Success - actions/checkout@v2
time="2021-02-06T11:47:07-03:00" level=debug msg="Loading slug from git directory 'C:\\Users\\******\\Documents\\GitHub\\******\\repository-folder\\.git'"
time="2021-02-06T11:47:07-03:00" level=debug msg="Found revision: 0c428ff7d03f6b458fd8584b4b2b9c67f485288b\n"
time="2021-02-06T11:47:07-03:00" level=debug msg="Loading revision from git directory 'C:\\Users\\******\\Documents\\GitHub\\******\\repository-folder\\.git'"
time="2021-02-06T11:47:07-03:00" level=debug msg="Found revision: 0c428ff7d03f6b458fd8584b4b2b9c67f485288b\n"
time="2021-02-06T11:47:07-03:00" level=debug msg="HEAD points to '0c428ff7d03f6b458fd8584b4b2b9c67f485288b'"
time="2021-02-06T11:47:07-03:00" level=debug msg="HEAD matches \\refs\\heads\\main"
time="2021-02-06T11:47:07-03:00" level=debug msg="using github ref: \\refs\\heads\\main"
time="2021-02-06T11:47:07-03:00" level=debug msg="setupEnv => map[GITHUB_ACTION:1 GITHUB_ACTIONS:true GITHUB_ACTOR:nektos/act GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/github/workflow/event.json GITHUB_REF:\\refs\\heads\\main GITHUB_REPOSITORY:******/repository-folder GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SHA:0c428ff7d03f6b458fd8584b4b2b9c67f485288b GITHUB_TOKEN: GITHUB_WORKFLOW:CI GITHUB_WORKSPACE:/github/workspace HOME:/github/home]"
time="2021-02-06T11:47:07-03:00" level=debug msg="Loading slug from git directory 'C:\\Users\\******\\Documents\\GitHub\\******\\repository-folder\\.git'"
time="2021-02-06T11:47:07-03:00" level=debug msg="Found revision: 0c428ff7d03f6b458fd8584b4b2b9c67f485288b\n"
time="2021-02-06T11:47:07-03:00" level=debug msg="Loading revision from git directory 'C:\\Users\\******\\Documents\\GitHub\\******\\repository-folder\\.git'"
time="2021-02-06T11:47:07-03:00" level=debug msg="Found revision: 0c428ff7d03f6b458fd8584b4b2b9c67f485288b\n"
time="2021-02-06T11:47:07-03:00" level=debug msg="HEAD points to '0c428ff7d03f6b458fd8584b4b2b9c67f485288b'"
time="2021-02-06T11:47:07-03:00" level=debug msg="HEAD matches \\refs\\heads\\main"
time="2021-02-06T11:47:07-03:00" level=debug msg="using github ref: \\refs\\heads\\main"
time="2021-02-06T11:47:07-03:00" level=debug msg="context env => map[]"
time="2021-02-06T11:47:07-03:00" level=debug msg="context env => map[GITHUB_ACTION:1 GITHUB_ACTIONS:true GITHUB_ACTOR:nektos/act GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/github/workflow/event.json GITHUB_REF:\\refs\\heads\\main GITHUB_REPOSITORY:******/repository-folder GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SHA:0c428ff7d03f6b458fd8584b4b2b9c67f485288b GITHUB_TOKEN: GITHUB_WORKFLOW:CI GITHUB_WORKSPACE:/github/workspace HOME:/github/home]"
[CI/test] ⭐  Run actions/setup-node@v1
[CI/test]   ☁  git clone 'https://github.com/actions/setup-node' # ref=v1
[CI/test]   cloning https://github.com/actions/setup-node to C:\Users\******\.cache\act/actions-setup-node@v1
[CI/test] Unable to pull refs/heads/v1: non-fast-forward update
[CI/test] Cloned https://github.com/actions/setup-node to C:\Users\******\.cache\act/actions-setup-node@v1
[CI/test] Checked out v1
time="2021-02-06T11:47:08-03:00" level=debug msg="Read action &{Setup Node.js environment GitHub Setup a Node.js environment and add it to the PATH, additionally providing proxy support map[always-auth:{Set always-auth in npmrc false false} node-version:{Version Spec of the version to use.  Examples: 10.x, 10.15.1, >=10.15.0 false 10.x} registry-url:{Optional registry to set up for auth. Will set the registry in a project level .npmrc and .yarnrc file, and set up auth to read in from env.NODE_AUTH_TOKEN false } scope:{Optional scope for authenticating against scoped registries false } version:{Deprecated. Use node-version instead. Will not be supported after October 1, 2019 false }] map[] {node12 map[] dist/index.js  [] []} { }} from 'C:\\Users\\******\\.cache\\act\\actions-setup-node@v1\\action.yml'"
time="2021-02-06T11:47:08-03:00" level=debug msg="About to run action &{Setup Node.js environment GitHub Setup a Node.js environment and add it to the PATH, additionally providing proxy support map[always-auth:{Set always-auth in npmrc false false} node-version:{Version Spec of the version to use.  Examples: 10.x, 10.15.1, >=10.15.0 false 10.x} registry-url:{Optional registry to set up for auth. Will set the registry in a project level .npmrc and .yarnrc file, and set up auth to read in from env.NODE_AUTH_TOKEN false } scope:{Optional scope for authenticating against scoped registries false } version:{Deprecated. Use node-version instead. Will not be supported after October 1, 2019 false }] map[] {node12 map[] dist/index.js  [] []} { }}"
time="2021-02-06T11:47:08-03:00" level=debug msg="type=3 actionDir=C:\\Users\\******\\.cache\\act/actions-setup-node@v1 Workdir=C:\\Users\\******\\Documents\\GitHub\\******\\repository-folder ActionCacheDir=C:\\Users\\******\\.cache\\act actionName=/actions-setup-node@v1 containerActionDir=/actions"
[CI/test]   �  docker cp src=C:\Users\******\.cache\act/actions-setup-node@v1 dst=/actions\
[CI/test] Exec command '[mkdir -p /actions\]'
time="2021-02-06T11:47:08-03:00" level=debug msg="Writing tarball C:\\Users\\VINICI~1\\AppData\\Local\\Temp\\act856657226 from C:\\Users\\******\\.cache\\act/actions-setup-node@v1"
time="2021-02-06T11:47:08-03:00" level=debug msg="Stripping prefix:C:\\Users\\******\\.cache\\act\\ src:C:\\Users\\******\\.cache\\act/actions-setup-node@v1"
[CI/test] Extracting content from 'C:\Users\VINICI~1\AppData\Local\Temp\act856657226' to '/actions\'
[CI/test] Exec command '[node \actions\actions-setup-node@v1\dist\index.js]'
| internal/modules/cjs/loader.js:628
|     throw err;
|     ^
|
| Error: Cannot find module '/github/workspace/\actions\actions-setup-node@v1\dist\index.js'
|     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:625:15)
|     at Function.Module._load (internal/modules/cjs/loader.js:527:27)
|     at Function.Module.runMain (internal/modules/cjs/loader.js:839:10)
|     at internal/main/run_main_module.js:17:11 {
|   code: 'MODULE_NOT_FOUND',
|   requireStack: []
| }
[CI/test]   ❌  Failure - actions/setup-node@v1
time="2021-02-06T11:47:10-03:00" level=debug msg="exit with `FAILURE`: 1"
time="2021-02-06T11:47:10-03:00" level=debug msg="exit with `FAILURE`: 1"
time="2021-02-06T11:47:10-03:00" level=debug msg="exit with `FAILURE`: 1"
Error: exit with `FAILURE`: 1
Originally created by @vinicioslc on GitHub (Feb 6, 2021). Original GitHub issue: https://github.com/nektos/act/issues/520 Hi im using Windows 10 with: nvm: 12.18.3 docker engine: 20.10.2 When i run the example yml i get the following output The example used to test. ```yml name: CI on: push jobs: test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v1 - run: npm install - run: npm test ``` Console output (in cmder but prints the same in powershell) ![image](https://user-images.githubusercontent.com/10997022/107121230-08e84e00-6870-11eb-8101-70301252b96e.png) When I run `act -v` <details> <summary>See output</summary> ```shell λ act -v time="2021-02-06T11:46:58-03:00" level=debug msg="Loading environment from C:\\Users\\******\\Documents\\GitHub\\******\\repository-folder\\.env" time="2021-02-06T11:46:58-03:00" level=debug msg="Loading secrets from " time="2021-02-06T11:46:58-03:00" level=debug msg="Loading workflows from 'C:\\Users\\******\\Documents\\GitHub\\******\\repository-folder\\.github\\workflows'" time="2021-02-06T11:46:58-03:00" level=debug msg="Reading workflow 'C:\\Users\\******\\Documents\\GitHub\\******\\repository-folder\\.github\\workflows\\node.js.yml'" time="2021-02-06T11:46:58-03:00" level=debug msg="Planning event: push" time="2021-02-06T11:46:58-03:00" level=debug msg="Loading slug from git directory 'C:\\Users\\******\\Documents\\GitHub\\******\\repository-folder\\.git'" time="2021-02-06T11:46:58-03:00" level=debug msg="Found revision: 0c428ff7d03f6b458fd8584b4b2b9c67f485288b\n" time="2021-02-06T11:46:58-03:00" level=debug msg="Loading revision from git directory 'C:\\Users\\******\\Documents\\GitHub\\******\\repository-folder\\.git'" time="2021-02-06T11:46:58-03:00" level=debug msg="Found revision: 0c428ff7d03f6b458fd8584b4b2b9c67f485288b\n" time="2021-02-06T11:46:58-03:00" level=debug msg="HEAD points to '0c428ff7d03f6b458fd8584b4b2b9c67f485288b'" time="2021-02-06T11:46:58-03:00" level=debug msg="HEAD matches \\refs\\heads\\main" time="2021-02-06T11:46:58-03:00" level=debug msg="using github ref: \\refs\\heads\\main" time="2021-02-06T11:46:58-03:00" level=debug msg="context env => map[]" [CI/test] � Start image=node:12.6-buster-slim time="2021-02-06T11:46:58-03:00" level=debug msg="Loading slug from git directory 'C:\\Users\\******\\Documents\\GitHub\\******\\repository-folder\\.git'" time="2021-02-06T11:46:58-03:00" level=debug msg="Found revision: 0c428ff7d03f6b458fd8584b4b2b9c67f485288b\n" time="2021-02-06T11:46:58-03:00" level=debug msg="Loading revision from git directory 'C:\\Users\\******\\Documents\\GitHub\\******\\repository-folder\\.git'" time="2021-02-06T11:46:58-03:00" level=debug msg="Found revision: 0c428ff7d03f6b458fd8584b4b2b9c67f485288b\n" time="2021-02-06T11:46:58-03:00" level=debug msg="HEAD points to '0c428ff7d03f6b458fd8584b4b2b9c67f485288b'" time="2021-02-06T11:46:58-03:00" level=debug msg="HEAD matches \\refs\\heads\\main" time="2021-02-06T11:46:58-03:00" level=debug msg="using github ref: \\refs\\heads\\main" [CI/test] � docker pull node:12.6-buster-slim time="2021-02-06T11:46:58-03:00" level=debug msg="Image exists? true" [CI/test] Removed container: da712143eb2a047740d5b39a2cadba5ebfbd4edeea186dc481460b8a0c221555 [CI/test] � docker create image=node:12.6-buster-slim entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[] [CI/test] Created container name=act-CI-test id=015e7c84303aaa5b5e0461d14d060f05a6a853596f7483c5a050b3a2dc4d44da from image node:12.6-buster-slim [CI/test] ENV ==> [RUNNER_TOOL_CACHE=/opt/hostedtoolcache RUNNER_OS=Linux RUNNER_TEMP=/tmp] [CI/test] � docker run image=node:12.6-buster-slim entrypoint=["/usr/bin/tail" "-f" "/dev/null"] cmd=[] [CI/test] Starting container: 015e7c84303aaa5b5e0461d14d060f05a6a853596f7483c5a050b3a2dc4d44da [CI/test] Started container: 015e7c84303aaa5b5e0461d14d060f05a6a853596f7483c5a050b3a2dc4d44da [CI/test] � docker cp src=C:\Users\******\Documents\GitHub\******\repository-folder/. dst=\github\workspace [CI/test] Exec command '[mkdir -p \github\workspace]' time="2021-02-06T11:47:04-03:00" level=debug msg="Writing tarball C:\\Users\\VINICI~1\\AppData\\Local\\Temp\\act355255767 from C:\\Users\\******\\Documents\\GitHub\\******\\repository-folder/." time="2021-02-06T11:47:04-03:00" level=debug msg="Stripping prefix:C:\\Users\\******\\Documents\\GitHub\\******\\repository-folder\\ src:C:\\Users\\******\\Documents\\GitHub\\******\\repository-folder/." [CI/test] Extracting content from 'C:\Users\VINICI~1\AppData\Local\Temp\act355255767' to '\github\workspace' time="2021-02-06T11:47:07-03:00" level=debug msg="Writing entry to tarball workflow/event.json len:2" time="2021-02-06T11:47:07-03:00" level=debug msg="Writing entry to tarball home/.act len:0" [CI/test] Extracting content to '/github/' time="2021-02-06T11:47:07-03:00" level=debug msg="Loading slug from git directory 'C:\\Users\\******\\Documents\\GitHub\\******\\repository-folder\\.git'" time="2021-02-06T11:47:07-03:00" level=debug msg="Found revision: 0c428ff7d03f6b458fd8584b4b2b9c67f485288b\n" time="2021-02-06T11:47:07-03:00" level=debug msg="Loading revision from git directory 'C:\\Users\\******\\Documents\\GitHub\\******\\repository-folder\\.git'" time="2021-02-06T11:47:07-03:00" level=debug msg="Found revision: 0c428ff7d03f6b458fd8584b4b2b9c67f485288b\n" time="2021-02-06T11:47:07-03:00" level=debug msg="HEAD points to '0c428ff7d03f6b458fd8584b4b2b9c67f485288b'" time="2021-02-06T11:47:07-03:00" level=debug msg="HEAD matches \\refs\\heads\\main" time="2021-02-06T11:47:07-03:00" level=debug msg="using github ref: \\refs\\heads\\main" time="2021-02-06T11:47:07-03:00" level=debug msg="setupEnv => map[GITHUB_ACTION:0 GITHUB_ACTIONS:true GITHUB_ACTOR:nektos/act GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/github/workflow/event.json GITHUB_REF:\\refs\\heads\\main GITHUB_REPOSITORY:******/repository-folder GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SHA:0c428ff7d03f6b458fd8584b4b2b9c67f485288b GITHUB_TOKEN: GITHUB_WORKFLOW:CI GITHUB_WORKSPACE:/github/workspace HOME:/github/home]" time="2021-02-06T11:47:07-03:00" level=debug msg="Loading slug from git directory 'C:\\Users\\******\\Documents\\GitHub\\******\\repository-folder\\.git'" time="2021-02-06T11:47:07-03:00" level=debug msg="Found revision: 0c428ff7d03f6b458fd8584b4b2b9c67f485288b\n" time="2021-02-06T11:47:07-03:00" level=debug msg="Loading revision from git directory 'C:\\Users\\******\\Documents\\GitHub\\******\\repository-folder\\.git'" time="2021-02-06T11:47:07-03:00" level=debug msg="Found revision: 0c428ff7d03f6b458fd8584b4b2b9c67f485288b\n" time="2021-02-06T11:47:07-03:00" level=debug msg="HEAD points to '0c428ff7d03f6b458fd8584b4b2b9c67f485288b'" time="2021-02-06T11:47:07-03:00" level=debug msg="HEAD matches \\refs\\heads\\main" time="2021-02-06T11:47:07-03:00" level=debug msg="using github ref: \\refs\\heads\\main" time="2021-02-06T11:47:07-03:00" level=debug msg="context env => map[]" time="2021-02-06T11:47:07-03:00" level=debug msg="context env => map[GITHUB_ACTION:0 GITHUB_ACTIONS:true GITHUB_ACTOR:nektos/act GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/github/workflow/event.json GITHUB_REF:\\refs\\heads\\main GITHUB_REPOSITORY:******/repository-folder GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SHA:0c428ff7d03f6b458fd8584b4b2b9c67f485288b GITHUB_TOKEN: GITHUB_WORKFLOW:CI GITHUB_WORKSPACE:/github/workspace HOME:/github/home]" [CI/test] ⭐ Run actions/checkout@v2 time="2021-02-06T11:47:07-03:00" level=debug msg="Loading slug from git directory 'C:\\Users\\******\\Documents\\GitHub\\******\\repository-folder\\.git'" time="2021-02-06T11:47:07-03:00" level=debug msg="Found revision: 0c428ff7d03f6b458fd8584b4b2b9c67f485288b\n" time="2021-02-06T11:47:07-03:00" level=debug msg="Loading revision from git directory 'C:\\Users\\******\\Documents\\GitHub\\******\\repository-folder\\.git'" time="2021-02-06T11:47:07-03:00" level=debug msg="Found revision: 0c428ff7d03f6b458fd8584b4b2b9c67f485288b\n" time="2021-02-06T11:47:07-03:00" level=debug msg="HEAD points to '0c428ff7d03f6b458fd8584b4b2b9c67f485288b'" time="2021-02-06T11:47:07-03:00" level=debug msg="HEAD matches \\refs\\heads\\main" time="2021-02-06T11:47:07-03:00" level=debug msg="using github ref: \\refs\\heads\\main" [CI/test] Skipping actions/checkout [CI/test] ✅ Success - actions/checkout@v2 time="2021-02-06T11:47:07-03:00" level=debug msg="Loading slug from git directory 'C:\\Users\\******\\Documents\\GitHub\\******\\repository-folder\\.git'" time="2021-02-06T11:47:07-03:00" level=debug msg="Found revision: 0c428ff7d03f6b458fd8584b4b2b9c67f485288b\n" time="2021-02-06T11:47:07-03:00" level=debug msg="Loading revision from git directory 'C:\\Users\\******\\Documents\\GitHub\\******\\repository-folder\\.git'" time="2021-02-06T11:47:07-03:00" level=debug msg="Found revision: 0c428ff7d03f6b458fd8584b4b2b9c67f485288b\n" time="2021-02-06T11:47:07-03:00" level=debug msg="HEAD points to '0c428ff7d03f6b458fd8584b4b2b9c67f485288b'" time="2021-02-06T11:47:07-03:00" level=debug msg="HEAD matches \\refs\\heads\\main" time="2021-02-06T11:47:07-03:00" level=debug msg="using github ref: \\refs\\heads\\main" time="2021-02-06T11:47:07-03:00" level=debug msg="setupEnv => map[GITHUB_ACTION:1 GITHUB_ACTIONS:true GITHUB_ACTOR:nektos/act GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/github/workflow/event.json GITHUB_REF:\\refs\\heads\\main GITHUB_REPOSITORY:******/repository-folder GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SHA:0c428ff7d03f6b458fd8584b4b2b9c67f485288b GITHUB_TOKEN: GITHUB_WORKFLOW:CI GITHUB_WORKSPACE:/github/workspace HOME:/github/home]" time="2021-02-06T11:47:07-03:00" level=debug msg="Loading slug from git directory 'C:\\Users\\******\\Documents\\GitHub\\******\\repository-folder\\.git'" time="2021-02-06T11:47:07-03:00" level=debug msg="Found revision: 0c428ff7d03f6b458fd8584b4b2b9c67f485288b\n" time="2021-02-06T11:47:07-03:00" level=debug msg="Loading revision from git directory 'C:\\Users\\******\\Documents\\GitHub\\******\\repository-folder\\.git'" time="2021-02-06T11:47:07-03:00" level=debug msg="Found revision: 0c428ff7d03f6b458fd8584b4b2b9c67f485288b\n" time="2021-02-06T11:47:07-03:00" level=debug msg="HEAD points to '0c428ff7d03f6b458fd8584b4b2b9c67f485288b'" time="2021-02-06T11:47:07-03:00" level=debug msg="HEAD matches \\refs\\heads\\main" time="2021-02-06T11:47:07-03:00" level=debug msg="using github ref: \\refs\\heads\\main" time="2021-02-06T11:47:07-03:00" level=debug msg="context env => map[]" time="2021-02-06T11:47:07-03:00" level=debug msg="context env => map[GITHUB_ACTION:1 GITHUB_ACTIONS:true GITHUB_ACTOR:nektos/act GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/github/workflow/event.json GITHUB_REF:\\refs\\heads\\main GITHUB_REPOSITORY:******/repository-folder GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SHA:0c428ff7d03f6b458fd8584b4b2b9c67f485288b GITHUB_TOKEN: GITHUB_WORKFLOW:CI GITHUB_WORKSPACE:/github/workspace HOME:/github/home]" [CI/test] ⭐ Run actions/setup-node@v1 [CI/test] ☁ git clone 'https://github.com/actions/setup-node' # ref=v1 [CI/test] cloning https://github.com/actions/setup-node to C:\Users\******\.cache\act/actions-setup-node@v1 [CI/test] Unable to pull refs/heads/v1: non-fast-forward update [CI/test] Cloned https://github.com/actions/setup-node to C:\Users\******\.cache\act/actions-setup-node@v1 [CI/test] Checked out v1 time="2021-02-06T11:47:08-03:00" level=debug msg="Read action &{Setup Node.js environment GitHub Setup a Node.js environment and add it to the PATH, additionally providing proxy support map[always-auth:{Set always-auth in npmrc false false} node-version:{Version Spec of the version to use. Examples: 10.x, 10.15.1, >=10.15.0 false 10.x} registry-url:{Optional registry to set up for auth. Will set the registry in a project level .npmrc and .yarnrc file, and set up auth to read in from env.NODE_AUTH_TOKEN false } scope:{Optional scope for authenticating against scoped registries false } version:{Deprecated. Use node-version instead. Will not be supported after October 1, 2019 false }] map[] {node12 map[] dist/index.js [] []} { }} from 'C:\\Users\\******\\.cache\\act\\actions-setup-node@v1\\action.yml'" time="2021-02-06T11:47:08-03:00" level=debug msg="About to run action &{Setup Node.js environment GitHub Setup a Node.js environment and add it to the PATH, additionally providing proxy support map[always-auth:{Set always-auth in npmrc false false} node-version:{Version Spec of the version to use. Examples: 10.x, 10.15.1, >=10.15.0 false 10.x} registry-url:{Optional registry to set up for auth. Will set the registry in a project level .npmrc and .yarnrc file, and set up auth to read in from env.NODE_AUTH_TOKEN false } scope:{Optional scope for authenticating against scoped registries false } version:{Deprecated. Use node-version instead. Will not be supported after October 1, 2019 false }] map[] {node12 map[] dist/index.js [] []} { }}" time="2021-02-06T11:47:08-03:00" level=debug msg="type=3 actionDir=C:\\Users\\******\\.cache\\act/actions-setup-node@v1 Workdir=C:\\Users\\******\\Documents\\GitHub\\******\\repository-folder ActionCacheDir=C:\\Users\\******\\.cache\\act actionName=/actions-setup-node@v1 containerActionDir=/actions" [CI/test] � docker cp src=C:\Users\******\.cache\act/actions-setup-node@v1 dst=/actions\ [CI/test] Exec command '[mkdir -p /actions\]' time="2021-02-06T11:47:08-03:00" level=debug msg="Writing tarball C:\\Users\\VINICI~1\\AppData\\Local\\Temp\\act856657226 from C:\\Users\\******\\.cache\\act/actions-setup-node@v1" time="2021-02-06T11:47:08-03:00" level=debug msg="Stripping prefix:C:\\Users\\******\\.cache\\act\\ src:C:\\Users\\******\\.cache\\act/actions-setup-node@v1" [CI/test] Extracting content from 'C:\Users\VINICI~1\AppData\Local\Temp\act856657226' to '/actions\' [CI/test] Exec command '[node \actions\actions-setup-node@v1\dist\index.js]' | internal/modules/cjs/loader.js:628 | throw err; | ^ | | Error: Cannot find module '/github/workspace/\actions\actions-setup-node@v1\dist\index.js' | at Function.Module._resolveFilename (internal/modules/cjs/loader.js:625:15) | at Function.Module._load (internal/modules/cjs/loader.js:527:27) | at Function.Module.runMain (internal/modules/cjs/loader.js:839:10) | at internal/main/run_main_module.js:17:11 { | code: 'MODULE_NOT_FOUND', | requireStack: [] | } [CI/test] ❌ Failure - actions/setup-node@v1 time="2021-02-06T11:47:10-03:00" level=debug msg="exit with `FAILURE`: 1" time="2021-02-06T11:47:10-03:00" level=debug msg="exit with `FAILURE`: 1" time="2021-02-06T11:47:10-03:00" level=debug msg="exit with `FAILURE`: 1" Error: exit with `FAILURE`: 1 ``` </details>
kerem closed this issue 2026-03-01 21:42:36 +03:00
Author
Owner

@catthehacker commented on GitHub (Feb 6, 2021):

What is the version of act you are running? Issue has been fixed in https://github.com/nektos/act/pull/461

Just tested your workflow and seems to work fine
[CI/test] ⭐  Run actions/checkout@v2
[CI/test]   ✅  Success - actions/checkout@v2
[CI/test] ⭐  Run actions/setup-node@v1
[CI/test]   ☁  git clone 'https://github.com/actions/setup-node' # ref=v1
[CI/test]   🐳  docker cp src=C:\Users\cat\.cache\act/actions-setup-node@v1 dst=/actions/
[CI/test]   💬  ::debug::isExplicit: 
[CI/test]   💬  ::debug::explicit? false
[CI/test]   💬  ::debug::evaluating 0 versions
[CI/test]   💬  ::debug::match not found
[CI/test]   💬  ::debug::evaluating 438 versions
[CI/test]   💬  ::debug::matched: v10.23.2
[CI/test]   💬  ::debug::isExplicit: 10.23.2
[CI/test]   💬  ::debug::explicit? true
[CI/test]   💬  ::debug::checking cache: /opt/hostedtoolcache/node/10.23.2/x64
[CI/test]   💬  ::debug::not found
[CI/test]   💬  ::debug::Downloading https://nodejs.org/dist/v10.23.2/node-v10.23.2-linux-x64.tar.gz
[CI/test]   💬  ::debug::Destination /tmp/fc5ab1d5-3e57-4650-a101-b2c45280acb0
[CI/test]   💬  ::debug::download complete
[CI/test]   💬  ::debug::Checking tar --version
[CI/test]   💬  ::debug::tar (GNU tar) 1.30%0ACopyright (C) 2017 Free Software Foundation, Inc.%0ALicense GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.%0AThis is free software: you are free to change and redistribute it.%0AThere is NO WARRANTY, to the extent permitted by law.%0A%0AWritten by John Gilmore and Jay Fenlason.
| [command]/bin/tar xz --warning=no-unknown-keyword -C /tmp/1d86b4f8-da1d-4b08-84fa-c1c273bd5bf4 -f /tmp/fc5ab1d5-3e57-4650-a101-b2c45280acb0
[CI/test]   💬  ::debug::Caching tool node 10.23.2 x64
[CI/test]   💬  ::debug::source dir: /tmp/1d86b4f8-da1d-4b08-84fa-c1c273bd5bf4/node-v10.23.2-linux-x64
[CI/test]   💬  ::debug::destination /opt/hostedtoolcache/node/10.23.2/x64
[CI/test]   💬  ::debug::finished caching tool
[CI/test]   ⚙  ::add-path:: /opt/hostedtoolcache/node/10.23.2/x64/bin
| [command]/opt/hostedtoolcache/node/10.23.2/x64/bin/node --version  
| v10.23.2
| [command]/opt/hostedtoolcache/node/10.23.2/x64/bin/npm --version   
| 6.14.10
[CI/test]   ❓  ##[add-matcher]/actions/actions-setup-node@v1/.github/tsc.json
[CI/test]   ❓  ##[add-matcher]/actions/actions-setup-node@v1/.github/eslint-stylish.json
[CI/test]   ❓  ##[add-matcher]/actions/actions-setup-node@v1/.github/eslint-compact.json
[CI/test]   ✅  Success - actions/setup-node@v1
<!-- gh-comment-id:774496973 --> @catthehacker commented on GitHub (Feb 6, 2021): What is the version of `act` you are running? Issue has been fixed in https://github.com/nektos/act/pull/461 <details> <summary>Just tested your workflow and seems to work fine</summary> ``` [CI/test] ⭐ Run actions/checkout@v2 [CI/test] ✅ Success - actions/checkout@v2 [CI/test] ⭐ Run actions/setup-node@v1 [CI/test] ☁ git clone 'https://github.com/actions/setup-node' # ref=v1 [CI/test] 🐳 docker cp src=C:\Users\cat\.cache\act/actions-setup-node@v1 dst=/actions/ [CI/test] 💬 ::debug::isExplicit: [CI/test] 💬 ::debug::explicit? false [CI/test] 💬 ::debug::evaluating 0 versions [CI/test] 💬 ::debug::match not found [CI/test] 💬 ::debug::evaluating 438 versions [CI/test] 💬 ::debug::matched: v10.23.2 [CI/test] 💬 ::debug::isExplicit: 10.23.2 [CI/test] 💬 ::debug::explicit? true [CI/test] 💬 ::debug::checking cache: /opt/hostedtoolcache/node/10.23.2/x64 [CI/test] 💬 ::debug::not found [CI/test] 💬 ::debug::Downloading https://nodejs.org/dist/v10.23.2/node-v10.23.2-linux-x64.tar.gz [CI/test] 💬 ::debug::Destination /tmp/fc5ab1d5-3e57-4650-a101-b2c45280acb0 [CI/test] 💬 ::debug::download complete [CI/test] 💬 ::debug::Checking tar --version [CI/test] 💬 ::debug::tar (GNU tar) 1.30%0ACopyright (C) 2017 Free Software Foundation, Inc.%0ALicense GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>.%0AThis is free software: you are free to change and redistribute it.%0AThere is NO WARRANTY, to the extent permitted by law.%0A%0AWritten by John Gilmore and Jay Fenlason. | [command]/bin/tar xz --warning=no-unknown-keyword -C /tmp/1d86b4f8-da1d-4b08-84fa-c1c273bd5bf4 -f /tmp/fc5ab1d5-3e57-4650-a101-b2c45280acb0 [CI/test] 💬 ::debug::Caching tool node 10.23.2 x64 [CI/test] 💬 ::debug::source dir: /tmp/1d86b4f8-da1d-4b08-84fa-c1c273bd5bf4/node-v10.23.2-linux-x64 [CI/test] 💬 ::debug::destination /opt/hostedtoolcache/node/10.23.2/x64 [CI/test] 💬 ::debug::finished caching tool [CI/test] ⚙ ::add-path:: /opt/hostedtoolcache/node/10.23.2/x64/bin | [command]/opt/hostedtoolcache/node/10.23.2/x64/bin/node --version | v10.23.2 | [command]/opt/hostedtoolcache/node/10.23.2/x64/bin/npm --version | 6.14.10 [CI/test] ❓ ##[add-matcher]/actions/actions-setup-node@v1/.github/tsc.json [CI/test] ❓ ##[add-matcher]/actions/actions-setup-node@v1/.github/eslint-stylish.json [CI/test] ❓ ##[add-matcher]/actions/actions-setup-node@v1/.github/eslint-compact.json [CI/test] ✅ Success - actions/setup-node@v1 ``` </details>
Author
Owner

@vinicioslc commented on GitHub (Feb 6, 2021):

@catthehacker Thanks !

I was using the version 0.2.9 from chocolatey, now i added to PATH a version 0.2.19 from releases page, this error does not longer occurs.
but generates another error
npm install \r\n Maximum call stack size exceeded , i guess its my package.json deps, i think this issue could be closed now.

<!-- gh-comment-id:774498677 --> @vinicioslc commented on GitHub (Feb 6, 2021): @catthehacker Thanks ! I was using the version 0.2.9 from chocolatey, now i added to PATH a version 0.2.19 from releases page, this error does not longer occurs. but generates another error `npm install \r\n Maximum call stack size exceeded` , i guess its my package.json deps, i think this issue could be closed now.
Author
Owner

@catthehacker commented on GitHub (Feb 6, 2021):

Choco releases have been fixed in https://github.com/nektos/act/pull/515 so hopefully next act release should arrive on chocolatey.

<!-- gh-comment-id:774521170 --> @catthehacker commented on GitHub (Feb 6, 2021): Choco releases have been fixed in https://github.com/nektos/act/pull/515 so hopefully next `act` release should arrive on chocolatey.
Author
Owner

@vinicioslc commented on GitHub (Feb 6, 2021):

This will be nice !
im waiting for this.

<!-- gh-comment-id:774523784 --> @vinicioslc commented on GitHub (Feb 6, 2021): This will be nice ! im waiting for this.
Author
Owner

@cplee commented on GitHub (Feb 8, 2021):

@vinicioslc - just released v0.2.20 https://chocolatey.org/packages/act-cli/0.2.20

<!-- gh-comment-id:775310406 --> @cplee commented on GitHub (Feb 8, 2021): @vinicioslc - just released `v0.2.20` https://chocolatey.org/packages/act-cli/0.2.20
Author
Owner

@vinicioslc commented on GitHub (Feb 8, 2021):

@cplee
Ok, I will test it

<!-- gh-comment-id:775312656 --> @vinicioslc commented on GitHub (Feb 8, 2021): @cplee Ok, I will test it
Author
Owner

@vinicioslc commented on GitHub (Feb 8, 2021):

@cplee
Everthing works fine ! thanks again this is an awesome tool!

<!-- gh-comment-id:775349201 --> @vinicioslc commented on GitHub (Feb 8, 2021): @cplee Everthing works fine ! thanks again this is an awesome tool!
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#352
No description provided.