wly11132 2021-12-21 15:39 采纳率: 60%
浏览 40
已结题

angular 发布自己的library到npm,npm publish报错

img

npm publish 报错,怎么回事,

wangliyan@wangliyans-iMac daily-system % npm publish

daily-system@0.0.1 prepublishOnly .
node --eval "console.error('ERROR: Trying to publish a package that has been compiled by Ivy. This is not allowed.\nPlease delete and rebuild the package, without compiling with Ivy, before attempting to publish.\n')" && exit 1

ERROR: Trying to publish a package that has been compiled by Ivy. This is not allowed.
Please delete and rebuild the package, without compiling with Ivy, before attempting to publish.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! daily-system@0.0.1 prepublishOnly: node --eval "console.error('ERROR: Trying to publish a package that has been compiled by Ivy. This is not allowed.\nPlease delete and rebuild the package, without compiling with Ivy, before attempting to publish.\n')" && exit 1
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the daily-system@0.0.1 prepublishOnly script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/wangliyan/.npm/_logs/2021-12-21T07_35_55_356Z-debug.log
wangliyan@wangliyans-iMac daily-system %

  • 写回答

2条回答

      报告相同问题?

      相关推荐 更多相似问题

      问题事件

      • 系统已结题 12月31日
      • 已采纳回答 12月23日
      • 创建了问题 12月21日

      悬赏问题

      • ¥15 AHK如何设置一个按键手工插入延迟
      • ¥15 我不知道怎么说,也不知道怎么写
      • ¥20 oracle需要把blob(在不截取的条件下)完整转为varchar2类型
      • ¥15 c语言九宫格问题纠错
      • ¥15 数值方法(MATLAB版)第四版课后习题求解
      • ¥15 关于#java#的运行时间过长问题,如何解决?
      • ¥15 R包安装过程中出现了错误
      • ¥15 android 类似辅助筛选软件得实现
      • ¥40 pyqt5主界面跳转实现pandas运用
      • ¥20 uniapp使用uni.uploadFile上传图片,通过后端返回的授权链接,put文件到阿里云服务器