在Ionic项目中,我删除了以前附加的附件。但是当我构建项目时,我收到一个错误。我在下面提到了错误。我找不到解决方案。我删除了 Config.xml 中的必要位置,但在重建时会再次添加此行。我很高兴你找到了解决问题的方法。谢谢
Discovered plugin "com.attendee.barcodegenerator" in config.xml. Adding it to the project
Failed to restore plugin "com.attendee.barcodegenerator" from config.xml. You might need to try adding it again. Error: Failed to fetch plugin com.attendee.barcodegenerator@~0.0.4 via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Error: npm: Command failed with exit code 1 Error output:
npm ERR! code E404
npm ERR! 404 Not Found: com.attendee.barcodegenerator@~0.0.4
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/CAN/.npm/_logs/2017-10-31T14_51_47_381Z-debug.log
<plugin name="com.attendee.barcodegenerator" spec="~0.0.4" />
你只需要这样做:
cordova plugin remove cordova-barcode-generator --save