ng-packagr npm安装错误:postinstall`opencollective postinstall`

时间:2019-02-07 08:14:36

标签: angular npm npm-install ng-packagr

我正在尝试构建一个angular 6库,它需要ng-packagr作为依赖项。 尝试npm安装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中已经创建了一个问题。问题来自 ng-packagr 的内部依赖项,称为 opencollective / opencollective-postinstall 。我尝试在环境变量DISABLE_OPENCOLLECTIVE=true中禁用它。 但我仍然收到上述错误。还有其他人可以安装ng-packagr吗?

1 个答案:

答案 0 :(得分:0)

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