27

while installing native-script i got repositories.cfg could not be loaded error , please help me debugging it. It would help me if you can give the way to download the file externally. The code i used was.....

@powershell -NoProfile -ExecutionPolicy Bypass -Command "iex ((new-object net.webclient).DownloadString('https://www.nativescript.org/setup/win'))"

during installation it gets stuck saying c:\user\user-name.android\repositories.cfg cannot load file

Cœur
  • 37,241
  • 25
  • 195
  • 267
Yogendra
  • 295
  • 1
  • 3
  • 9

1 Answers1

53

Try this:

Error resolved by creating an empty repositories.cfg file.

Reference

Vishal Yadav
  • 3,642
  • 3
  • 25
  • 42
  • Can you share that in which directory should i create empty .cfg file? I need for windows? – Mohd Sadham Jun 29 '18 at 03:29
  • 2
    @MohdSadham have you read [Reference](https://stackoverflow.com/q/43433542/6244429), anyway check the warning and add the file at desired location. ex : Warning: File /Users/vishal/.android/repositories.cfg could not be loaded. – Vishal Yadav Jun 30 '18 at 08:00