Not able to download cordova progress Indicator plugin


#1

Hi,
I am trying to download progress Indicator plugin in IONIC project with below command and getting below error. Please advise me on this.

plugin command for progress indicator plugin:cordova plugin add https://github.com/pbernasconi/cordova-progressIndicator.git

error:E:\phonegap\NCPDemo>cordova plugin add https://github.com/pbernasconi/cordova-pr
ogressIndicator.git
Fetching plugin “https://github.com/pbernasconi/cordova-progressIndicator.git” v
ia git clone
Error: Failed to fetch plugin https://github.com/pbernasconi/cordova-progressInd
icator.git via git.
Either there is a connection problems, or plugin spec is incorrect:
Error: C:\Program Files\Git\cmd\git.exe: Command failed with exit code 1
28 Error output:
Cloning into ‘C:\Users\SURESH~1\AppData\Local\Temp\git\1453097387592’…
error: unable to create file demo/plugins/org.pbernasconi.progressIndicator/demo
/plugins/org.pbernasconi.progressIndicator/demo/platforms/ios/CordovaLib/Cordova
Lib.xcodeproj/xcuserdata/paolob.xcuserdatad/xcschemes/CordovaLib.xcscheme (Filen
ame too long)
error: unable to create file demo/plugins/org.pbernasconi.progressIndicator/demo
/plugins/org.pbernasconi.progressIndicator/demo/platforms/ios/CordovaLib/Cordova
Lib.xcodeproj/xcuserdata/paolob.xcuserdatad/xcschemes/xcschememanagement.plist (
Filename too long)
error: unable to create file demo/plugins/org.pbernasconi.progressIndicator/demo
/plugins/org.pbernasconi.progressIndicator/demo/platforms/ios/CordovaLib/build/C
ordovaLib.build/Debug-iphonesimulator/CordovaLib.build/Cordova-all-target-header
s.hmap (Filename too long)
error: unable to create file demo/plugins/org.pbernasconi.progressIndicator/demo
/plugins/org.pbernasconi.progressIndicator/demo/platforms/ios/CordovaLib/build/C
ordovaLib.build/Debug-iphonesimulator/CordovaLib.build/Cordova-generated-files.h
map (Filename too long)
error: unable to create file demo/plugins/org.pbernasconi.progressIndicator/demo
/plugins/org.pbernasconi.progressIndicator/demo/platforms/ios/CordovaLib/build/C
ordovaLib.build/Debug-iphonesimulator/CordovaLib.build/Cordova-own-target-header
s.hmap (Filename too long)
error: unable to create file demo/plugins/org.pbernasconi.progressIndicator/demo
/plugins/org.pbernasconi.progressIndicator/demo/platforms/ios/CordovaLib/build/C
ordovaLib.build/Debug-iphonesimulator/CordovaLib.build/Cordova-project-headers.h
map (Filename too long)
fatal: cannot create directory at ‘demo/plugins/org.pbernasconi.progressIndicato
r/demo/plugins/org.pbernasconi.progressIndicator/demo/platforms/ios/CordovaLib/b
uild/CordovaLib.build/Debug-iphonesimulator/CordovaLib.build/Objects-normal’: Fi
lename too long
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status’
and retry the checkout with ‘git checkout -f HEAD’

regards,
suresh


#2

Did you find any solution for this?


#3

On Windows Git gets compiled with msys (old Windows API)
which has a limit of 260 characters for a filename. You can change your
GIT configuration to use longer filenames:

git config --system core.longpaths true