1. `tns platform add <platform> --frameworkPath <path>` 2. delete `platforms/` 3. tns run `<platform>` before: There is an infinite loader when a nonexisting runtime is specified in the package.json. after: invalid pkg error fixed in [PR ](https://github.com/NativeScript/nativescript-cli/pull/3759)