mauron85 / cordova-plugin-background-geolocation-example

51 stars 54 forks source link

Fix for build issue on windows #7

Open noobling opened 7 years ago

noobling commented 7 years ago

Hey guys, Windows has a 255 character limit for paths so when you are building the application you may encounter an error relating to some very long path to fix this simply rename the downloaded folder name from cordova-plugin-background-geolocation-example -> something_shorter then try building again

Hope it helps.

LucaGabi commented 6 years ago

There is an error, not working:

C:\work\cpgps>npm ERR! code ELIFECYCLE npm ERR! errno 255 npm ERR! com.marianhello.bgexampleapp@2.0.0 clean: rimraf www/*!\(gitignore\) npm ERR! Exit status 255 npm ERR! npm ERR! Failed at the com.marianhello.bgexampleapp@2.0.0 clean script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Luca\AppData\Roaming\npm-cache_logs\2018-05-01T14_21_45_630Z-debug.log

mauron85 commented 6 years ago

@LucaGabi your issue is different from 255 char limit. Just run quick test on Windows (which I normally don't use) and it's rimraf not recognizing glob syntax on windows correctly. Please copy all details from your comment and create new issue for this.