Skip to content

Doctor command fails when ANDROID_HOME is not set #2905

@rosen-vladimirov

Description

@rosen-vladimirov

Tell us about the problem

In case ANDROID_HOME is not set, tns doctor fails with:
Path must be a string, received undefined.

Which platform(s) does your issue occur on?

iOS/Android/Both - not applicable

Please provide the following version numbers that your issue occurs with:

  • CLI: (run tns --version to fetch it) - @next
  • Cross-platform modules: (check the 'version' attribute in the node_modules/tns-core-modules/package.json file in your project) - not applicable
  • Runtime(s): (look for the "tns-android" and "tns-ios" properties in the package.json file of your project) - not applicable
  • Plugin(s): (look for the version number in the package.json file of your
    project) - not applicable

Please tell us how to recreate the issue in as much detail as possible.

Remove your ANDROID_HOME environment variable and execute
tns doctor

Is there code involved? If so, please share the minimal amount of code needed to recreate the problem.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions