action-setup: Action failing with setup that has previously been working
Getting the following error when running action. Action was working yesterday, and has worked for almost a year.
Running self-installer...
WARN GET https://registry.npmjs.org/pnpm error (ERR_INVALID_THIS). Will retry in 10 seconds. 2 retries left.
WARN GET https://registry.npmjs.org/pnpm error (ERR_INVALID_THIS). Will retry in 1 minute. 1 retries left.
ERR_PNPM_META_FETCH_FAIL GET https://registry.npmjs.org/pnpm: Value of "this" must be of type URLSearchParams
Error: Something went wrong, self-installer exits with code 1
Installation Completed!
This is our setup:
- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: latest
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 68
- Comments: 31 (5 by maintainers)
Links to this issue
Commits related to this issue
- chore(deps): upgrade pnpm action-setup to v4 Fix failing setup step Ref: https://github.com/pnpm/action-setup/issues/135 — committed to Pocket/pocket-monorepo by kschelonka 2 years ago
- chore(deps): upgrade pnpm action-setup to v4 Fix failing setup step Ref: https://github.com/pnpm/action-setup/issues/135 — committed to Pocket/pocket-monorepo by kschelonka 2 years ago
- chore(deps): upgrade pnpm action-setup to v4 (#631) Fix failing setup step Ref: https://github.com/pnpm/action-setup/issues/135 — committed to Pocket/pocket-monorepo by kschelonka 2 years ago
- fix(ci): pnpm/action-setup@v2 failed due to an error ` ERR_PNPM_META_FETCH_FAIL GET https://registry.npmjs.org/pnpm: Value of "this" must be of type URLSearchParams` see https://github.com/pnpm/ac... — committed to enuesaa/kakkofn by enuesaa 2 years ago
- fix(ci): pnpm/action-setup@v2 failed due to an error ` ERR_PNPM_META_FETCH_FAIL GET https://registry.npmjs.org/pnpm: Value of "this" must be of type URLSearchParams` see https://github.com/pnpm/acti... — committed to enuesaa/kakkofn by enuesaa 2 years ago
- Fix pnpm installation error on CI Per <https://github.com/pnpm/action-setup/issues/135>. — committed to caleb531/personal-website by caleb531 2 years ago
- Fix pnpm installation error on CI Per <https://github.com/pnpm/action-setup/issues/135>. — committed to caleb531/2fa-code-generator by caleb531 2 years ago
- Fix pnpm installation error on CI Per <https://github.com/pnpm/action-setup/issues/135>. — committed to caleb531/connect-four by caleb531 2 years ago
- Fix pnpm installation error on CI Per <https://github.com/pnpm/action-setup/issues/135>. — committed to caleb531/faith-dashboard by caleb531 2 years ago
- Fix pnpm installation error on CI Per <https://github.com/pnpm/action-setup/issues/135>. — committed to caleb531/flip-book by caleb531 2 years ago
- Fix pnpm installation error on CI Per <https://github.com/pnpm/action-setup/issues/135>. — committed to caleb531/pswd-matcher by caleb531 2 years ago
- Fix pnpm installation error on CI Per <https://github.com/pnpm/action-setup/issues/135>. — committed to caleb531/rollup-plugin-peggy by caleb531 2 years ago
- Fix pnpm installation error on CI Per <https://github.com/pnpm/action-setup/issues/135>. — committed to caleb531/truthy by caleb531 2 years ago
- Fix pnpm installation error on CI Per <https://github.com/pnpm/action-setup/issues/135>. — committed to caleb531/workday-time-calculator by caleb531 2 years ago
- Fix pnpm installation error on CI Per <https://github.com/pnpm/action-setup/issues/135>. — committed to caleb531/youversion-suggest-api by caleb531 2 years ago
- Fix pnpm installation error on CI Per <https://github.com/pnpm/action-setup/issues/135>. — committed to caleb531/jcanvas by caleb531 2 years ago
- fix: action failing with setup that has previously been working See https://github.com/pnpm/action-setup/issues/135 — committed to yazi-rs/yazi-rs.github.io by sxyazi 2 years ago
- ci: update pnpm setup (#775) Upstream: https://github.com/pnpm/action-setup/issues/135#issuecomment-2206861174 — committed to wakujs/waku by himself65 2 years ago
- chore: upgrade pnpm/action-setup to v4 make actions work again see: https://github.com/pnpm/action-setup/issues/135 — committed to RightCapitalHQ/frontend-style-guide by frantic1048 2 years ago
- fix(CI): pnpm install fail. fixed by #pnpm/action-setup#135 — committed to SharerMax/V2ray2ClashRule by SharerMax 2 years ago
Upgrading the action to v4 seems to fix this:
Appreciate that upgrading to v4.0.0 may solve the problem, but addressing this in dozens of GitHub workflows on a US Holiday is a nightmare. To say nothing of dozens of broken builds that cannot be reinitiated after the workflow change. What caused this to break? Can it be restored?
Seeing this as well with
version: 8.11.0. Was totally fine a couple hours ago.Fixed in 2.4.1 https://github.com/pnpm/action-setup/releases/tag/v2.4.1
It seems that this issue may be related to the
fetchAPI. Currently,pnpm/action-setup@v2is usingNode.js@v16, which has reached its EOL. It is also possible that GitHub Actions have abandoned the use of this version and fallback to a higher version. The above is just speculation.only the modern javascript ecosystem can have software be broken absolutely out of nowhere
Upgrading to
v4works for us, thanks @fvictorio !@bobinfra1006
Here is a possible issue where the pnpm version specified in the package.json does not match the version specified in the GitHub Action configuration. I encountered the same issue, but I was able to resolve it by aligning the pnpm version specified in the package.json with the version specified in the GitHub Actions configuration.
Failed with pnpm version:9 as well for us.
Upgrading action to 4 worked!!!
Adding to this, GitHub deprecated Node.js v16 (EOL) last year and there should’ve been warnings since 23 Oct 2023. https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/
To stop this from happening again, setup Dependabot/Renovate to update your GitHub Actions.
This fix worked when jumping from pnpm/action-setup@v2 . Thanks @fvictorio !
upgrading to v4 fixes this for me