Tns info throws 'Invalid Version: next' error on downloaded projects


#1

How can check all NativeScript components versions information belongs to an downloaded nativescript apps from github/any other source…

FYI,
I have downloaded the lazyNinjas app from github. I have build and tested in my local machine. From this app if tried to check components versions information using tns info means i have encountered with Invalid Version:next error.


#2

The issue is because in the lazyNinja project the runtimes are references with next.
The thing is that these are not treated as npm packets by nativescript CLI and in the same time the command tns info is looking for packages in NPM published with the described version.

To overcome this issue just remove the next version for tns-ios and tns-android and prepare your project with published versions.

Finally its works fine once i added the actual version of runtimes instead of next.
FYI,

Runtime references with next -

"nativescript": {
    "id": "org.nativescript.lazyNinjas-aot",
    "tns-ios": {
      "version": "next"
    }
}

Runtime references with actual version -

"nativescript": {
    "id": "org.nativescript.lazyNinjas-aot",
    "tns-ios": {
      "version": "3.2.0"
    }
}

For more detail please refer this issue.

Thanks for your support @NickIliev.