0

我正在尝试构建一个 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

4

1 回答 1

0

尝试在 Alpine Linux 上安装 ng-packagr 时遇到了同样的错误。我可以通过运行apk add ncurses和安装来解决它ncurses,因为它tput包含opencollective postinstall.

于 2019-02-11T19:26:00.093 回答