我正在尝试构建一个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吗?
答案 0 :(得分:0)
尝试在Alpine Linux上安装ng-packagr时遇到相同的错误。我可以通过运行apk add ncurses
并安装ncurses
来解决它,因为它包含tput
所需的opencollective postinstall
命令。