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

Bug: opencollective: Permission denied #15

Closed
macjohnny opened this issue Jan 8, 2019 · 6 comments
Closed

Bug: opencollective: Permission denied #15

macjohnny opened this issue Jan 8, 2019 · 6 comments

Comments

@macjohnny
Copy link
Contributor

macjohnny commented Jan 8, 2019

Issue Type

Bug

Description

postinstall fails on CircleCI with the following error:

> opencollective postinstall

sh: 1: opencollective: Permission denied
wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 126
npm ERR! ng-packagr@4.4.5 postinstall: `opencollective postinstall`
npm ERR! Exit status 126
npm ERR! 
npm ERR! Failed at the ng-packagr@4.4.5 postinstall script.

https://circleci.com/gh/bithost-gmbh/ngx-mat-select-search/114?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link

Workaround

An easy workaround is to add the following to the .circleci/config.yml

jobs:
  build:
    ... 
    steps:
      ...
      - run: DISABLE_OPENCOLLECTIVE=true
      - run: npm install

Suggested fix

Don't throw errors if something fails, allowing to continue the installation without interruption.

See also

ng-packagr/ng-packagr#1178

@znarf
Copy link
Member

znarf commented Jan 30, 2019

This is related to the old version and the old setup.

Old

The opencollective npm package.

"scripts": {
  "postinstall": "opencollective postinstall"
},

New

The opencollective-postinstall npm package.

"scripts": {
  "postinstall": "opencollective-postinstall"
},

@znarf znarf closed this as completed Jan 30, 2019
@macjohnny
Copy link
Contributor Author

@znarf so the error should not be thrown anymore when using opencollective-postinstall?

@znarf
Copy link
Member

znarf commented Jan 31, 2019

@macjohnny Yes. And if you have any issue with opencollective-postinstall, then you can report it as a new issue in this repository!

@macjohnny
Copy link
Contributor Author

@znarf thanks! side question: is opencollective-cli officially deprecated and opencollective-postinstall the suggested way to include an opencollective postinstall message?

@znarf
Copy link
Member

znarf commented Jan 31, 2019

@macjohnny Regarding the opencollective postinstall message, opencollective-cli is deprecated yes.

The feedback (and experience) was that the package was too big and with too many dependencies for the simple task.

@macjohnny
Copy link
Contributor Author

Regarding the opencollective postinstall message, opencollective-cli is deprecated yes.

So it might be good to add a note at the beginning of the Readme and archive the repository

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