- Install the latest NativeScript cli (7.x.x)
npm i -g nativescript
- Choose A or B depending on your use case:
A) Starting a new Angular web project and adding {N} to it afterwards:
ng new workspace
cd workspace
ng add @nativescript/schematics@latest --skipAutoGeneratedComponent
// start apps:
npm run ios
npm run android
B) Starting a new Angular NativeScript shared codebase from the start:
npm i -g @nativescript/schematics@latest
ng new -c=@nativescript/schematics workspace --shared --style=scss
cd workspace
// start apps:
npm run ios
npm run android