在Cordova使用cordova plugins add命令时报错
Installing "com.is751.icbcNFC" for .idea
Failed to install 'com.is751.icbcNFC': CordovaError: Could not load API for .idea project D:\AS\zhsyTest\platforms\.idea\cordova\Api.js
at Object.getPlatformApiFunction (C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\util.js:322:19)
at Object.getPlatformApi (C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\platforms\index.js:55:34)
at handleInstall (C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\install.js:560:29)
at C:\Users\Administrator\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\plugman\install.js:344:28
Could not load API for .idea project D:\AS\zhsyTest\platforms\.idea\cordova\Api.js
原因是IDE自动生成的.idea无法被解析,删除platforms目录中的即可