[GH-ISSUE #5995] Node version #1313

Open
opened 2026-03-01 21:50:18 +03:00 by kerem · 2 comments
Owner

Originally created by @virzak on GitHub (Jan 17, 2026).
Original GitHub issue: https://github.com/nektos/act/issues/5995

Looks like this tool comes with 3 versions of node,js.

How can I easily set up to use node 20? I only figured out this:

export PATH=/opt/acttoolcache/node/20.19.6/x64/bin:$PATH

or

echo "PATH=/opt/acttoolcache/node/20.19.6/x64/bin:$PATH" >> $GITHUB_ENV

Also searched documentation and was unable to find anything

Originally created by @virzak on GitHub (Jan 17, 2026). Original GitHub issue: https://github.com/nektos/act/issues/5995 Looks like this tool comes with 3 versions of node,js. How can I easily set up to use node 20? I only figured out this: ```bash export PATH=/opt/acttoolcache/node/20.19.6/x64/bin:$PATH ``` or ```bash echo "PATH=/opt/acttoolcache/node/20.19.6/x64/bin:$PATH" >> $GITHUB_ENV ``` Also searched documentation and was unable to find anything
Author
Owner

@mdierolf commented on GitHub (Feb 1, 2026):

We are seeing workflow failures due to the use of Node 18. Github is currently using Node 20, the default should be updated to Node 20.

FYI, In March, the default will change to Node 24.

[Publish to NPM/build]   🐳  docker exec cmd=[bash -e /var/run/act/workflow/3] user= workdir=./frontend/chat
| $ vite build
| You are using Node.js 18.20.8. Vite requires Node.js version 20.19+ or 22.12+. Please upgrade your Node.js version.
| vite v7.3.1 building client environment for production...
| ✓ 0 modules transformed.
| ✗ Build failed in 21ms
| error during build:
| [vite:build-html] crypto.hash is not a function                                                                                                                                                 
| file: /home/mdierolf/gitprojects/tokenring/frontend/chat/index.html                                                                                                                             
|     at getHash (file:///home/mdierolf/gitprojects/tokenring/node_modules/.bun/vite@7.3.1+c6f38b20243af01d/node_modules/vite/dist/node/chunks/config.js:2444:19)                                 
|     at file:///home/mdierolf/gitprojects/tokenring/node_modules/.bun/vite@7.3.1+c6f38b20243af01d/node_modules/vite/dist/node/chunks/config.js:23994:22
|     at traverseNodes (file:///home/mdierolf/gitprojects/tokenring/node_modules/.bun/vite@7.3.1+c6f38b20243af01d/node_modules/vite/dist/node/chunks/config.js:23767:2)
|     at file:///home/mdierolf/gitprojects/tokenring/node_modules/.bun/vite@7.3.1+c6f38b20243af01d/node_modules/vite/dist/node/chunks/config.js:23768:141
|     at Array.forEach (<anonymous>)
|     at traverseNodes (file:///home/mdierolf/gitprojects/tokenring/node_modules/.bun/vite@7.3.1+c6f38b20243af01d/node_modules/vite/dist/node/chunks/config.js:23768:118)
|     at file:///home/mdierolf/gitprojects/tokenring/node_modules/.bun/vite@7.3.1+c6f38b20243af01d/node_modules/vite/dist/node/chunks/config.js:23768:141
|     at Array.forEach (<anonymous>)
|     at traverseNodes (file:///home/mdierolf/gitprojects/tokenring/node_modules/.bun/vite@7.3.1+c6f38b20243af01d/node_modules/vite/dist/node/chunks/config.js:23768:118)
|     at file:///home/mdierolf/gitprojects/tokenring/node_modules/.bun/vite@7.3.1+c6f38b20243af01d

<!-- gh-comment-id:3831280375 --> @mdierolf commented on GitHub (Feb 1, 2026): We are seeing workflow failures due to the use of Node 18. Github is currently using Node 20, the default should be updated to Node 20. FYI, In March, the default will change to Node 24. ``` [Publish to NPM/build] 🐳 docker exec cmd=[bash -e /var/run/act/workflow/3] user= workdir=./frontend/chat | $ vite build | You are using Node.js 18.20.8. Vite requires Node.js version 20.19+ or 22.12+. Please upgrade your Node.js version. | vite v7.3.1 building client environment for production... | ✓ 0 modules transformed. | ✗ Build failed in 21ms | error during build: | [vite:build-html] crypto.hash is not a function | file: /home/mdierolf/gitprojects/tokenring/frontend/chat/index.html | at getHash (file:///home/mdierolf/gitprojects/tokenring/node_modules/.bun/vite@7.3.1+c6f38b20243af01d/node_modules/vite/dist/node/chunks/config.js:2444:19) | at file:///home/mdierolf/gitprojects/tokenring/node_modules/.bun/vite@7.3.1+c6f38b20243af01d/node_modules/vite/dist/node/chunks/config.js:23994:22 | at traverseNodes (file:///home/mdierolf/gitprojects/tokenring/node_modules/.bun/vite@7.3.1+c6f38b20243af01d/node_modules/vite/dist/node/chunks/config.js:23767:2) | at file:///home/mdierolf/gitprojects/tokenring/node_modules/.bun/vite@7.3.1+c6f38b20243af01d/node_modules/vite/dist/node/chunks/config.js:23768:141 | at Array.forEach (<anonymous>) | at traverseNodes (file:///home/mdierolf/gitprojects/tokenring/node_modules/.bun/vite@7.3.1+c6f38b20243af01d/node_modules/vite/dist/node/chunks/config.js:23768:118) | at file:///home/mdierolf/gitprojects/tokenring/node_modules/.bun/vite@7.3.1+c6f38b20243af01d/node_modules/vite/dist/node/chunks/config.js:23768:141 | at Array.forEach (<anonymous>) | at traverseNodes (file:///home/mdierolf/gitprojects/tokenring/node_modules/.bun/vite@7.3.1+c6f38b20243af01d/node_modules/vite/dist/node/chunks/config.js:23768:118) | at file:///home/mdierolf/gitprojects/tokenring/node_modules/.bun/vite@7.3.1+c6f38b20243af01d ```
Author
Owner

@ChristopherHX commented on GitHub (Feb 1, 2026):

Duplicate of https://github.com/nektos/act/issues/5921 that contains the answer: https://github.com/nektos/act/issues/5921#issuecomment-3253259486

e.g.

FROM ghcr.io/catthehacker/ubuntu:act-latest
ENV PATH=/opt/acttoolcache/node/20.19.4/x64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin

Or use any other Docker Image that comes with node in default $PATH of the container, usually you would install node in /usr/local/bin which is by default in the PATH env of any docker container.

<!-- gh-comment-id:3831406139 --> @ChristopherHX commented on GitHub (Feb 1, 2026): Duplicate of https://github.com/nektos/act/issues/5921 that contains the answer: <https://github.com/nektos/act/issues/5921#issuecomment-3253259486> e.g. ```Dockerfile FROM ghcr.io/catthehacker/ubuntu:act-latest ENV PATH=/opt/acttoolcache/node/20.19.4/x64/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin ``` Or use any other Docker Image that comes with `node` in default $PATH of the container, usually you would install node in /usr/local/bin which is by default in the `PATH` env of any docker container.
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#1313
No description provided.