Pergunta

I have just created a testing cordova project and now am trying to add a simple Push Notification plugin (https://github.com/phonegap-build/PushPlugin) into my project.

I followed its instruction and typed this :

cordova plugin add https://github.com/phonegap-build/PushPlugin.git

But immediately, the command line failed with this error message:

F:\Workplace\pushnotification\pushnotification>cordova plugin add https://github.com/phonegap-build/PushPlugin.git
Fetching plugin "https://github.com/phonegap-build/PushPlugin.git" via git clone
Error: Command failed: fatal: could not create work tree dir 'C:\Users\FRANV_~1\AppData\Local\Temp\plugman\git\1398870928641'.: No such file or directory

    at ChildProcess.exithandler (child_process.js:637:15)
    at ChildProcess.EventEmitter.emit (events.js:98:17)
    at maybeClose (child_process.js:743:16)
    at Socket.<anonymous> (child_process.js:956:11)
    at Socket.EventEmitter.emit (events.js:95:17)
    at Pipe.close (net.js:465:12)

I just did the updating of my Tortoise GitHub, but it didn't solve the problem.

Foi útil?

Solução

It seems there is a bug in git source dependencies on Windows.

Try to create the directory manually :

mkdir C:\Users\FRANV_~1\AppData\Local\Temp\plugman\git\1398870928641

Then :

cordova plugin add https://github.com/phonegap-build/PushPlugin.git
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top