vuematerial / vue-material

Vue.js Framework - ready-to-use Vue components with Material Design, free forever.
https://www.creative-tim.com/vuematerial
MIT License
9.89k stars 1.15k forks source link

opencollective-postinstall: command not found #2367

Open pborsutzki opened 2 years ago

pborsutzki commented 2 years ago

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 commented 1 year ago

On it!