2015-06-18 34 views
0

我是離子框架的新成員。當我將使用CLI任何插件作爲未添加IONIC項目的插件

ionic plugin add https://github.com/ccsoft/cordova-facebook.git

我得到以下錯誤:

Repository "https://github.com/ccsoft/cordova-facebook.git" checked out to gitef "master". 
shell.js: internal error 
Error: EXDEV, cross-device link not permitted 'C:\Users\Miteshpc\AppData\Local\emp\git\1434622511690\LICENSE' 
    at Error (native) 
    at Object.fs.renameSync (fs.js:636:18) 
    at C:\Users\Miteshpc\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\shelljs\src\mv.js:77:8 
    at Array.forEach (native) 
    at Object._mv (C:\Users\Miteshpc\AppData\Roaming\npm\node_modules\cordova\nde_modules\cordova-lib\node_modules\shelljs\src\mv.js:53:11) 
    at Object.mv (C:\Users\Miteshpc\AppData\Roaming\npm\node_modules\cordova\noe_modules\cordova-lib\node_modules\shelljs\src\common.js:186:23) 
    at C:\Users\Miteshpc\AppData\Roaming\npm\node_modules\cordova\node_modules\ordova-lib\src\plugman\util\plugins.js:53:19 
    at _fulfilled (C:\Users\Miteshpc\AppData\Roaming\npm\node_modules\cordova\nde_modules\q\q.js:787:54) 
    at self.promiseDispatch.done (C:\Users\Miteshpc\AppData\Roaming\npm\node_moules\cordova\node_modules\q\q.js:816:30) 
    at Promise.promise.promiseDispatch (C:\Users\Miteshpc\AppData\Roaming\npm\nde_modules\cordova\node_modules\q\q.js:749:13) 
+0

可能複製與http://stackoverflow.com/questions/30801307/upgrade-cordova-cannot-install-plugins-from-git-urls-anymore 回滾科爾多瓦5.0.0 – bsm

+0

我在這裏公佈的答案 http://stackoverflow.com/questions/30801307/upgrade-cordova-cannot-install-plugins-from-git-urls-anymore/30958837#30958837 它會爲你工作 –

+0

是的,我確實回滾到科爾多瓦5.0.0問題解決了 –

回答

0

我不得不嘗試添加了Facebook插件的OAuth同樣的問題。這個問題的真正原因對我來說仍然是未知的,但按照@ Pian0_M4n的說明,它對我有用,這是一個很好的解決方法。這裏是鏈接:

Upgrade cordova: cannot install plugins from git urls anymore

祝你好運!

相關問題