thingsboard3.3.4打包时编译到ui-ngx时爆出了下面的异常信息:
Exit code: 1 [INFO] Command: node ./run.js [INFO] Arguments: [INFO] Directory: E:\work\corp\tb\thingsboard\ui-ngx\node_modules\postinstall-prepare [INFO] Output: [INFO] ERROR Failed to apply patch for package @geoman-io/leaflet-geoman-free [INFO] [INFO] This happened because the patch file patches@geoman-io+leaflet-geoman-free+2.11.4.patch could not be parsed. [INFO] [INFO] If you just upgraded patch-package, you can try running: [INFO] [INFO] cd patches@geoman-io+leaflet-geoman-free+2.11.4.patc [INFO] patch -p1 -i h [INFO] npx patch-package @geoman-io/leaflet-geoman-free [INFO] cd ../.. [INFO] [INFO] Otherwise, try manually creating the patch file again. [INFO] [INFO] If the problem persists, please submit a bug report: [INFO] [INFO] https://github.com/ds300/patch-package/issues/new?title=Patch+file+parse+error&body=%3CPlease+attach+the+patch+file+in+question%3E
最后通过删除 ui-ngx\patches目录下的geoman-io+leaflet-geoman-free+2.11.4.patch文件后就可以正常编译了
参考文章: