2013-10-02 78 views
2

我在這裏瘋了。我使用的是PhoneGap 3.0,並且我使用一些插件創建了一個應用程序。我意識到那些我第一次安裝的插件是不夠的,所以我試圖安裝另一個插件。問題中的問題是捕獲插件和文件傳輸插件。當我嘗試在終端中添加插件時,出現此錯誤:PhoneGap 3.0插件安裝錯誤

path.js:360 
    throw new TypeError('Arguments to path.join must be strings'); 
     ^
TypeError: Arguments to path.join must be strings 
at path.js:360:15 
at Array.filter (native) 
at Object.exports.join (path.js:358:36) 
at possiblyFetch (/usr/local/lib/node_modules/phonegap/node_modules/cordova/node_modules/plugman/src/install.js:49:27) 
at /usr/local/lib/node_modules/phonegap/node_modules/cordova/node_modules/plugman/src/install.js:298:17 
at Array.forEach (native) 
at runInstall (/usr/local/lib/node_modules/phonegap/node_modules/cordova/node_modules/plugman/src/install.js:229:22) 
at possiblyFetch (/usr/local/lib/node_modules/phonegap/node_modules/cordova/node_modules/plugman/src/install.js:64:9) 
at Object.installPlugin [as install] (/usr/local/lib/node_modules/phonegap/node_modules/cordova/node_modules/plugman/src/install.js:44:5) 
at doInstall (/usr/local/lib/node_modules/phonegap/node_modules/cordova/src/plugin.js:153:45) 

我試過了所有內容,包括創建了一個全新的應用程序。但沒有運氣。

這是一個非常時間敏感的應用程序,我需要做的,所以任何幫助非常感謝。

謝謝!

+0

我只是試着通過'cordova插件添加org.apache.cordova.file-transfer'和'cordova插件添加org.apache.cordova添加這些插件.media-capture「並沒有任何問題。這是與科爾多瓦3.0.10。你可以再試試空項目嗎?另外,你在Windows上?在Windows上處理類似空格,連字符等奇怪字符的文件名時,我曾經見過類似的錯誤....您的項目是否使用名稱中的任何這些字符? – MBillau

+0

我遇到同樣的問題。我在Mac上,我的文件/文件夾名稱只有標準字母字符。 –

+0

@AlexBet你解決了這個錯誤。我也面臨同樣的錯誤,但無法解決。請讓我知道 – ChenSmile

回答