2013-10-15 33 views
1

當試圖添加一個插件或做一個構建時,我得到下面的錯誤。 config.xml文件並在該位置Phonegap 3.0命令行沒有這樣的文件或目錄錯誤

存在我使用的命令是

$ phonegap local plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser.git 

$ phonegap build ios 

錯誤

fs.js:427 
return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode); 
      ^
Error: ENOENT, no such file or directory '/Users/Tiltmac1/Sites/RBG/plantbank- app/platforms/ios/PlantBank/config.xml' 
at Object.fs.openSync (fs.js:427:18) 
at Object.fs.readFileSync (fs.js:284:15) 
at Object.module.exports.parseElementtreeSync (/usr/local/lib/node_modules/phonegap/node_modules/cordova/src/xml-helpers.js:107:27) 
at Object.config_parser (/usr/local/lib/node_modules/phonegap/node_modules/cordova/src/config_parser.js:25:20) 
at Object.ios_parser (/usr/local/lib/node_modules/phonegap/node_modules/cordova/src/metadata/ios_parser.js:61:19) 
at doInstall (/usr/local/lib/node_modules/phonegap/node_modules/cordova/src/plugin.js:131:50) 
at /usr/local/lib/node_modules/phonegap/node_modules/cordova/src/plugin.js:152:41 
at runInstall (/usr/local/lib/node_modules/phonegap/node_modules/cordova/node_modules/plugman/src/install.js:192:23) 
at possiblyFetch (/usr/local/lib/node_modules/phonegap/node_modules/cordova/node_modules/plugman/src/install.js:62:9) 
at Object.installPlugin (/usr/local/lib/node_modules/phonegap/node_modules/cordova/node_modules/plugman/src/install.js:42:5) 

回答

-2

難道所有的空間? 「RBG/plantbank- app/platforms」

0

嗨「git」也是一個節點模塊。你應該像這樣安裝插件。

NPM安裝-g混帳

這將在你的節點源位置安裝混帳作爲一個模塊。

重新啓動機器。

安裝PhoneGap的插件:C:\用戶\用戶1 \爲yourprojectname>科爾多瓦插件添加https://git-wip-us.apache.org/repos/asf/cordova-plugin-camera.git

你會得到響應爲:從 「https://git-wip-us.apache.org/repos/asf/cordova-plugin-cam era.git」 讀取插件......開始安裝「org.apache的.cordova.camera「for android準備安裝在android上的android項目org.apache.cordova.camera。

相關問題