安裝設備插件,我想通過命令行無法在PhoneGap的
cordova plugin add org.apache.cordova.device
文件夾添加到插件目錄來安裝設備插件。但即時通訊錯誤。並且無法獲得像設備一樣的功能.Cordova
Failed to install 'org.apache.cordova.device':Error: E:\Smargav\Projects\Done\na
tmobile\app\platforms\ios\cordova\version: Command failed with exit code ENOENT
at ChildProcess.whenDone (C:\Users\Amit S\AppData\Roaming\npm\node_modules\c
ordova\node_modules\cordova-lib\src\cordova\superspawn.js:131:23)
at ChildProcess.emit (events.js:95:17)
at Process.ChildProcess._handle.onexit (child_process.js:818:12)
Error: E:\Smargav\Projects\Done\natmobile\app\platforms\ios\cordova\version: Com
mand failed with exit code ENOENT
at ChildProcess.whenDone (C:\Users\Amit S\AppData\Roaming\npm\node_modules\c
ordova\node_modules\cordova-lib\src\cordova\superspawn.js:131:23)
at ChildProcess.emit (events.js:95:17)
at Process.ChildProcess._handle.onexit (child_process.js:818:12)
我使用的是版本4.3.0。我有科爾多瓦。 – 2015-04-01 06:31:23
是的。一切安好。但我只在android平臺上工作。我的項目有ios和android平臺。在這裏,我必須將該插件僅添加到android。所以這可能是原因。如何僅將插件添加到特定平臺 – 2015-04-01 06:37:49
在新項目中,它正在工作。這可能是因爲幾個平臺 – 2015-04-01 06:41:35