Question: How do I create an APK installer for mobile without the react native simulator? This is what happened when I tried to install the APK on Android.

[![enter image description here](https://i.stack.imgur.com/MJ179.png)](https://i.stack.imgur.com/MJ179.png)

Answer: 
**UPDATE** *Original question is about Angular 2 CLI. This doesn't work for curent Angular version!*

It depends but if you want to add routings to existing module then add folowing to your module.

```
import { Routes, RouterModule } from '@angular/router';

const routes: Routes = [];
//in array you should have your routes like 
// { path: "path",  component: ComponentName },

```

Then in NgModule where you have `imports` definition 

```
RouterModule.forRoot(routes, { useHash: true })

```

Or for child

```
RouterModule.forChild(routes)

```

Example for clean project

```
import { Routes, RouterModule } from '@angular/router';

const routes: Routes = [{ path: "path",  component: ComponentName }];
@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule],
  providers: []
})

```
it is not explain if you currently has some router declared in your application, any way you can add routing in any moment. 

It is not possible using the command --**ng int --routing** because was eliminated. and the routing option is only available when you running the new command, that create a new solution.

But you can create manually it. if you have some router in your app.module or none, you can follow the step described here to generate it:
[Implementing routing in separate module in angular](https://www.youtube.com/watch?v=LEB9RUCM1m8&list=PL6n9fhu94yhWUcq5Pc16uf8YKXoZ87Vh_&index=19)