Native Scripts installation

ios
android

#1

After native script installation and verifying the tns info, few components like tns-android , tns-ios , tans-core-modules are not getting installed.

:heavy_check_mark: Getting NativeScript components versions information…
:heavy_check_mark: Component nativescript has 4.0.0 version and is up to date.
:heavy_multiplication_x: Component tns-core-modules is not installed.
:heavy_multiplication_x: Component tns-android is not installed.
:heavy_multiplication_x: Component tns-ios is not installed.

Manual installation of tns android with command npm i tns-android produces below output

npm WARN XXX No description
npm WARN XXX No repository field.
npm WARN XXX No license field.

  • tns-android@4.0.0
    updated 1 package in 3.39s

#2

It seems that these three components status is related to a specific project.
If you create a new NS project at this stage:

tns create myApp
cd myApp
tns doctor

you should see core modules checked already:

:heavy_check_mark: Component tns-core-modules has 4.0.0 version and is up to date.

Now let’s continue with Android:

tns prepare android
tns doctor

Voilà:

:heavy_check_mark: Component tns-android has 4.0.0 version and is up to date.

Similar with iOS:

tns prepare ios
tns doctor

:heavy_check_mark: Component tns-ios has 4.0.1 version and is up to date.

To make things clear, running tns doctor from outside your project directory:

cd ..
tns doctor

will again result in:

:heavy_multiplication_x: Component tns-core-modules is not installed.
:heavy_multiplication_x: Component tns-android is not installed.
:heavy_multiplication_x: Component tns-ios is not installed.

So this is clearly related to a specific project folder.

If you follow installation docs and are used to keep everything green at each step, then IMO this can be really confusing. HTH.


#3

Thank you. Understood.