This tutorial help you to install NativeScript (https://www.nativescript.org/) on your machine. After completing this tutorial you will be able to run a basic project of Native Script.
- Hello World
NativeScript CLI build on Nodejs so you must have to install Nodejs before using it. If you are using Mac and you have alredy installed brew (https://brew.sh) then open terminal and type following command to install Nodejs
For other platform installation please check https://nodejs.org/
I am assuming that you are using Mac
You may need to use sudo to install native script globally on Mac. For on the other platform installation of NativeScript please check there documentation (http://docs.nativescript.org/start/quick-setup)
To create a Hello World project open the terminal and type following command
If you want to use TypeScript or Angular template please use following tags to create your project.
Go to HelloWorld project and using terminal and type following and hit enter to run the project on iOS emulator.
It should launch an Android or iPhone emulator base on above command and run the project.