美文网首页
npm publish 发布一个 Angular 库的时候报错

npm publish 发布一个 Angular 库的时候报错

作者: 华山令狐冲 | 来源:发表于2021-11-19 10:43 被阅读0次

错误消息:

ERROR: Trying to publish a package that has been compiled by Ivy in full compilation mode. This is not allowed.
Please delete and rebuild the package with Ivy partial compilation mode, before attempting to publish.

这是因为我之前是以 development 模式对我的 Angular 库进行 build:

更换成如下生产模式:

ng build my-lib --configuration production

之后错误消失:


更多Jerry的原创文章,尽在:"汪子熙":


相关文章

网友评论

      本文标题:npm publish 发布一个 Angular 库的时候报错

      本文链接:https://www.haomeiwen.com/subject/qooioltx.html