0

I am trying to build an angular 6 library and it needs ng-packagr as a dependency. I am getting following error while trying to npm install ng-packagr (latest version)

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ng-packagr@4.7.0 postinstall: `opencollective postinstall`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ng-packagr@4.7.0 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:

There is a issue created already in Github. Issue is coming from a internal dependency of ng-packagr called opencollective/opencollective-postinstall. I have tried disabling it in environment variables DISABLE_OPENCOLLECTIVE=true. But i still get the above error. Anyone else has a way around to install ng-packagr?

Malik
  • 3,520
  • 7
  • 29
  • 42

1 Answers1

0

I had the same error when trying to install ng-packagr on Alpine Linux. I could solve it by running apk add ncurses and installing ncurses, because it contains the tput command which is required for the opencollective postinstall.

Cody Gray - on strike
  • 239,200
  • 50
  • 490
  • 574
Samuel Philipp
  • 10,631
  • 12
  • 36
  • 56