【发布时间】:2015-08-28 08:37:54
【问题描述】:
我进行了 cordova/phonegap 升级,现在我无法再从 git url 安装插件了。有人遇到过这样的问题并且已经解决了吗?
$ cordova plugin add https://github.com/dawsonloudon/VideoPlayer.git
Fetching plugin "https://github.com/dawsonloudon/VideoPlayer.git" via git clone
Repository "https://github.com/dawsonloudon/VideoPlayer.git" checked out to git ref "master".
shell.js: internal error
Error: EXDEV, cross-device link not permitted '/var/folders/xl/bkl76rm570gfsmjspfjgh45h0000gn/T/git/1434106220728/LICENSE'
at Object.fs.renameSync (fs.js:554:18)
at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/shelljs/src/mv.js:77:8
at Array.forEach (native)
at Object._mv (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/shelljs/src/mv.js:53:11)
at Object.mv (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/shelljs/src/common.js:186:23)
at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/util/plugins.js:53:19
at _fulfilled (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:787:54)
at self.promiseDispatch.done (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:816:30)
at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/cordova/node_modules/q/q.js:749:13)
at /usr/local/lib/node_modules/cordova/node_modules/q/q.js:557:44
版本信息:
$ phonegap -v
5.0.0-0.28.1
$ cordova -v
5.1.1
OSX 10.10.3
编辑: 如果我将存储库移动到我的主目录(~/),它似乎可以工作。
【问题讨论】:
-
git 和 node 呢?
-
好像无法拉取 VideoPlayer 插件
-
你有没有尝试过其他随机的cordova插件,只是看看它是插件还是你的cordova设置
-
对我来说,问题是我的项目位于 /home 中,与 /tmp 不同的分区是 cordova 克隆存储库的地方。我不知道为什么这对 shell.js 来说是个问题
-
@ancechu,我也一样