-
-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ENOENT: no such file or directory during self-install #108
Comments
Assuming you have something like this in the step: - name: Install pnpm
uses: pnpm/action-setup@v2 You need to provide a
So either specify a version or a - name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: ^8.14.1
package_json_file: path/to/package.json # Alternatively, specify path to `package.json` that has `packageManager` field. The This will fix your error if it's due to the version. If not, I cannot help without additional information or reproduction. |
Hi, thanks for the reply, sorry I should have given more info: So my github-action (called steps:
- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: ^8.14.1 My "packageManager": "[email protected]", I get slightly different error messages between running the actions locally with act and when deployed to github
act (local) [Vercel Production Deployment/Deploy-Production] ⭐ Run Main pnpm/[email protected]
[Vercel Production Deployment/Deploy-Production] 🐳 docker cp src=/Users/Stephen.Fairbanks/.cache/act/[email protected]/ dst=/var/run/act/actions/[email protected]/
[Vercel Production Deployment/Deploy-Production] 🐳 docker exec cmd=[node /var/run/act/actions/[email protected]/dist/index.js] user= workdir=
[Vercel Production Deployment/Deploy-Production] ❓ ::group::Running self-installer...
| [Error: ENOENT: no such file or directory, open '/Users/Stephen.Fairbanks/Repos/glssry.org/package.json'] {
| errno: -2,
| code: 'ENOENT',
| syscall: 'open',
| path: '/Users/Stephen.Fairbanks/Repos/glssry.org/package.json'
| }
[Vercel Production Deployment/Deploy-Production] ❗ ::error::Error: ENOENT: no such file or directory, open '/Users/Stephen.Fairbanks/Repos/glssry.org/package.json'
[Vercel Production Deployment/Deploy-Production] ❌ Failure - Main pnpm/[email protected]
[Vercel Production Deployment/Deploy-Production] exitcode '1': failure
Github: Run pnpm/[email protected]
Running self-installer...
[Error: ENOENT: no such file or directory, open '/home/runner/work/glssry.org/glssry.org/package.json'] {
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: '/home/runner/work/glssry.org/glssry.org/package.json'
}
Error: Error: ENOENT: no such file or directory, open '/home/runner/work/glssry.org/glssry.org/package.json' I'd guess it's something simple I'm missing. |
My best bet is sticking to one I'm not aware of your directory structure, but the action also expects a My personal experience was that I faced errors defining the version in Regarding the double directory issue, I did get that as well in error logs. I am not sure if this is something for maintainers of this repo to fix, but here's another issue that might help you. Hope this helps! |
Thanks for your reply here, but I don't know if I can find a way to solve this. Just for clarity on my folder structure (I'm running a Next app, but not a monorepo): .github
- workflows
-- preview.yaml
-- production.yaml
...
package.json Running Run Main pnpm/[email protected]
[Vercel Production Deployment/Deploy-Production] 🐳 docker cp src=/Users/Stephen.Fairbanks/.cache/act/[email protected]/ dst=/var/run/act/actions/[email protected]/
[Vercel Production Deployment/Deploy-Production] 🐳 docker exec cmd=[node /var/run/act/actions/[email protected]/dist/index.js] user= workdir=
[Vercel Production Deployment/Deploy-Production] ❓ ::group::Running self-installer...
| [Error: ENOENT: no such file or directory, open '/Users/Stephen.Fairbanks/Repos/glssry.org/package.json'] {
| errno: -2,
| code: 'ENOENT',
| syscall: 'open',
| path: '/Users/Stephen.Fairbanks/Repos/glssry.org/package.json'
| }
...
ERR_PNPM_NO_PKG_MANIFEST No package.json found in /Users/Stephen.Fairbanks/Repos/glssry.org If I click the The issue you kindly provided doesn't seem to have a resolution unfortunately. I might just have to give up and go back to |
Are you missing the
|
This was it @arcs- ! Thank you for taking a look. I clearly need to understand how github actions work. Thanks very much. |
Admittedly my knowledge of
github-actions
andpnpm
is not great, and I'm running into this issue during thepnpm/action-setup
stage.For some reason - likely down to missing settings - it's doubling the app name, i.e.
glssry.org/glssry.org/package.json
I'm not sure why that is.The text was updated successfully, but these errors were encountered: