EddyVerbruggen / Insomnia-PhoneGap-Plugin

:sleepy: Prevent the screen of the mobile device from falling asleep
264 stars 106 forks source link

phonegap plugin add - shell.js: internal error (EXDEV, cross-device link not permitted) #20

Open zxfrank opened 9 years ago

zxfrank commented 9 years ago

Hello, running the following command with phonegap/cordova 5.1.1 phonegap plugin add https://github.com/EddyVerbruggen/Insomnia-PhoneGap-Plugin.git gives me this error:

Fetching plugin "https://github.com/EddyVerbruggen/Insomnia-PhoneGap-Plugin.git" via git clone

Repository "https://github.com/EddyVerbruggen/Insomnia-PhoneGap-Plugin.git" checked out to git ref "master".

shell.js: internal error

Error: EXDEV, cross-device link not permitted '/tmp/git/1438789348491/README.md'
    at Object.fs.renameSync (fs.js:543:18)
    at /usr/lib/node_modules/phonegap/node_modules/cordova/node_modules/cordova-lib/node_modules/shelljs/src/mv.js:77:8
    at Array.forEach (native)
    at Object._mv (/usr/lib/node_modules/phonegap/node_modules/cordova/node_modules/cordova-lib/node_modules/shelljs/src/mv.js:53:11)
    at Object.mv (/usr/lib/node_modules/phonegap/node_modules/cordova/node_modules/cordova-lib/node_modules/shelljs/src/common.js:186:23)
    at /usr/lib/node_modules/phonegap/node_modules/cordova/node_modules/cordova-lib/src/plugman/util/plugins.js:53:19
    at _fulfilled (/usr/lib/node_modules/phonegap/node_modules/cordova/node_modules/q/q.js:787:54)
    at self.promiseDispatch.done (/usr/lib/node_modules/phonegap/node_modules/cordova/node_modules/q/q.js:816:30)
    at Promise.promise.promiseDispatch (/usr/lib/node_modules/phonegap/node_modules/cordova/node_modules/q/q.js:749:13)
    at /usr/lib/node_modules/phonegap/node_modules/cordova/node_modules/q/q.js:557:44

is it a phonegap/cordova issue or is it related to the plugin?

thanks


Edit 2015-08-05 16:10

I found a workaround:

download Insomnia-PhoneGap-Plugin-master.zip extract-it go to your project folder phonegap plugin add path/to/the/extracted/folder and voila!

source: https://github.com/litehelpers/Cordova-sqlcipher-adapter/issues/9#issuecomment-122348389