我正在尝试构建一个 Angular 6 库,它需要 ng-packagr 作为依赖项。尝试 npm install 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的内部依赖项。我试过在环境变量中禁用它。但我仍然收到上述错误。其他人有办法安装 ng-packagr 吗?DISABLE_OPENCOLLECTIVE=true