Cordova 添加插件失败
Cordova adding plugin fails
我有一个 phonegap 应用程序并尝试安装剪贴板管理器插件
cordova plugin add cordova-plugin-clipboard-x
输出为:
Fetching plugin "cordova-plugin-clipboard-x" via npm
Installing "cordova-plugin-clipboard-x" for browser
Installing "cordova-plugin-clipboard-x" for ios
Failed to install 'cordova-plugin-clipboard-x':Error
at Object.parseProjectFile [as parse] (/Users/vskumar/PhoneGap/InstaSmart/platforms/ios/cordova/lib/projectFile.js:51:15)
at Api.addPlugin (/Users/vskumar/PhoneGap/InstaSmart/platforms/ios/cordova/Api.js:224:33)
at handleInstall (/usr/local/homebrew/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:611:6)
at /usr/local/homebrew/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:407:28
at _fulfilled (/usr/local/homebrew/lib/node_modules/cordova/node_modules/q/q.js:787:54)
at self.promiseDispatch.done (/usr/local/homebrew/lib/node_modules/cordova/node_modules/q/q.js:816:30)
at Promise.promise.promiseDispatch (/usr/local/homebrew/lib/node_modules/cordova/node_modules/q/q.js:749:13)
at /usr/local/homebrew/lib/node_modules/cordova/node_modules/q/q.js:509:49
at flush (/usr/local/homebrew/lib/node_modules/cordova/node_modules/q/q.js:108:17)
at _combinedTickCallback (internal/process/next_tick.js:73:7)
Error: Could not find *-Info.plist file, or config.xml file.
我不知道如何修复它。我的根文件夹中确实有一个 config.xml 文件。
首先更新你的node和cordova版本,然后创建项目。
然后添加
cordova plugin add cordova-plugin-clipboard-x
它会起作用。
我有一个 phonegap 应用程序并尝试安装剪贴板管理器插件
cordova plugin add cordova-plugin-clipboard-x
输出为:
Fetching plugin "cordova-plugin-clipboard-x" via npm
Installing "cordova-plugin-clipboard-x" for browser
Installing "cordova-plugin-clipboard-x" for ios
Failed to install 'cordova-plugin-clipboard-x':Error
at Object.parseProjectFile [as parse] (/Users/vskumar/PhoneGap/InstaSmart/platforms/ios/cordova/lib/projectFile.js:51:15)
at Api.addPlugin (/Users/vskumar/PhoneGap/InstaSmart/platforms/ios/cordova/Api.js:224:33)
at handleInstall (/usr/local/homebrew/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:611:6)
at /usr/local/homebrew/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:407:28
at _fulfilled (/usr/local/homebrew/lib/node_modules/cordova/node_modules/q/q.js:787:54)
at self.promiseDispatch.done (/usr/local/homebrew/lib/node_modules/cordova/node_modules/q/q.js:816:30)
at Promise.promise.promiseDispatch (/usr/local/homebrew/lib/node_modules/cordova/node_modules/q/q.js:749:13)
at /usr/local/homebrew/lib/node_modules/cordova/node_modules/q/q.js:509:49
at flush (/usr/local/homebrew/lib/node_modules/cordova/node_modules/q/q.js:108:17)
at _combinedTickCallback (internal/process/next_tick.js:73:7)
Error: Could not find *-Info.plist file, or config.xml file.
我不知道如何修复它。我的根文件夹中确实有一个 config.xml 文件。
首先更新你的node和cordova版本,然后创建项目。 然后添加
cordova plugin add cordova-plugin-clipboard-x
它会起作用。