我正在尝试构建一个Range6库,它需要ng-packagr作为依赖项。在尝试安装ng-packagr (最新版本)时,我收到了以下错误:
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:在Github中已经出现了一个问题。问题来自于名为opencollective/opencollective-postinstall.的ng-packagr的内部依赖。我已经尝试在环境变量DISABLE_OPENCOLLECTIVE=true中禁用它。但我还是得到了上面的错误。还有人有办法安装ng-packagr吗?
发布于 2019-02-11 19:26:00
在阿尔卑斯Linux上安装ng-packagr时,我也犯了同样的错误。我可以通过运行apk add ncurses和安装ncurses来解决这个问题,因为它包含了opencollective postinstall所需的tput命令。
https://stackoverflow.com/questions/54568924
复制相似问题