repositories.cfg could not be loaded in Windows 10

Yogendra picture Yogendra · Oct 31, 2017 · Viewed 44.3k times · Source

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

Answer

V.Y. picture V.Y. · Oct 31, 2017

Try this:

Error resolved by creating an empty repositories.cfg file.

Reference