Skip to content
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

opencollective-postinstall: command not found #2367

Open
pborsutzki opened this issue Jul 24, 2022 · 1 comment
Open

opencollective-postinstall: command not found #2367

pborsutzki opened this issue Jul 24, 2022 · 1 comment

Comments

@pborsutzki
Copy link

Steps to reproduce

Setup a nuxt.js project on Vercel, add vue-material to the dependencies and deploy. The problem happens during the build, where the @nuxt/vercel-builder tries to install devDependencies and fails with this message:

...
[17:02:52.479] [log] Running with @nuxt/vercel-builder version 0.22.1
[17:02:52.479] [log]  ----------------- Prepare build ----------------- 
[17:02:52.480] [log] Downloading files...
[17:02:52.488] [log] Working directory: /vercel/path2
[17:02:52.511] [log] Using yarn
[17:02:52.513] [info] Prepare build took: 33.743406 ms
[17:02:52.513] [log]  ----------------- Install devDependencies ----------------- 
[17:02:52.514] [log] Using cached node_modules_dev
[17:02:52.859] yarn install v1.22.17
[17:02:52.974] [1/5] Resolving packages...
[17:02:53.614] [2/5] Fetching packages...
[17:02:54.971] [3/5] Linking dependencies...
[17:04:20.904] [4/5] Building fresh packages...
[17:04:21.802] error /vercel/path2/node_modules/vue-material: Command failed.
[17:04:21.802] Exit code: 127
[17:04:21.802] Command: opencollective-postinstall
[17:04:21.803] Arguments: 
[17:04:21.803] Directory: /vercel/path2/node_modules/vue-material
[17:04:21.803] Output:
[17:04:21.803] /bin/sh: opencollective-postinstall: command not found
[17:04:21.803] info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
[17:04:22.003] Error: Command "yarn install" exited with 127
...

What is expected?

No errors.

What is actually happening?

I am not sure why this error occurs, but I found this issue with opencollective-postinstall and I believe that a workaround such as the ones proposed in there would work around the issue, e.g. using "postinstall": "opencollective-postinstall || true" or "postinstall": "opencollective-postinstall || exit 0".

@huffypiet
Copy link
Contributor

On it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants