question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Steps required for nativescript mac install?

See original GitHub issue

I am trying to install nativescript-cli but get an error about not having android installed. I ran tns doctor as suggested in the readme and got similar output to the error below.

$ npm install nativescript -g
npm WARN excluding symbolic link docs/stylesheets/hightlight.css -> ../../node_modules/highlight.js/src/styles/solarized_light.css
npm WARN excluding symbolic link docs/stylesheets/hightlight.css -> ../../node_modules/highlight.js/src/styles/solarized_light.css
npm WARN excluding symbolic link docs/assets/ir_black.css -> ../../node_modules/highlight.js/src/styles/ir_black.css
npm WARN excluding symbolic link examples/TestFramework/Test Framework.framework/Resources -> Versions/Current/Resources
npm WARN excluding symbolic link examples/TestFramework/Test Framework.framework/Test Framework -> Versions/Current/Test Framework
npm WARN excluding symbolic link examples/TestFramework/Test Framework.framework/Versions/Current -> A
npm WARN excluding symbolic link docs/stylesheets/hightlight.css -> ../../node_modules/highlight.js/src/styles/solarized_light.css
npm WARN excluding symbolic link docs/stylesheets/hightlight.css -> ../../node_modules/highlight.js/src/styles/solarized_light.css
npm WARN engine xmlbuilder@2.2.1: wanted: {"node":"0.8.x || 0.10.x"} (current: {"node":"4.2.1","npm":"3.3.6"})
/usr/local/bin/tns -> /usr/local/lib/node_modules/nativescript/bin/nativescript.js
/usr/local/bin/nativescript -> /usr/local/lib/node_modules/nativescript/bin/nativescript.js

> nativescript@1.4.1 postinstall /usr/local/lib/node_modules/nativescript
> node postinstall.js

WARNING: adb from the Android SDK is not installed or is not configured properly.
For Android-related operations, the NativeScript CLI will use a built-in version of adb.
To avoid possible issues with the native Android emulator, Genymotion or connected
Android devices, verify that you have installed the latest Android SDK and
its dependencies as described in http://developer.android.com/sdk/index.html#Requirements

TIP: To avoid setting up the necessary environment variables, you can use the Homebrew package manager to install the Android SDK and its dependencies.

WARNING: The Android SDK is not installed or is not configured properly.
You will not be able to build your projects for Android and run them in the native emulator.
To be able to build for Android and run apps in the native emulator, verify that you have
installed the latest Android SDK and its dependencies as described in http://developer.android.com/sdk/index.html#Requirements

TIP: To avoid setting up the necessary environment variables, you can use the Homebrew package manager to install the Android SDK and its dependencies.

WARNING: Gradle is not installed or is not configured properly.
You will not be able to build your projects for Android or run them in the emulator or on a connected device.
To be able to build for Android and run apps in the emulator or on a connected device, verify that you have installed Gradle.
WARNING: CocoaPod is not installed or is not configured properly.
You will not be able to build your projects for iOS if they contain plugin with CocoaPod file.
To be able to build such projects, verify that you have installed CocoaPod.
Command failed: /bin/sh -c android list targets
/bin/sh: android: command not found

Error: Unknown command 'dev-post-install'. Try '$ tns help' for a full list of supported commands.
    at Object.<anonymous> (/usr/local/lib/node_modules/nativescript/lib/common/errors.js:7:23)
    at Module._compile (module.js:435:26)
    at Object.Module._extensions..js (module.js:442:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:311:12)
    at Module.require (module.js:366:17)
    at require (module.js:385:17)
    at Object.<anonymous> (/usr/local/lib/node_modules/nativescript/lib/nativescript-cli.js:6:14)
    at Module._compile (module.js:435:26)
    at Object.Module._extensions..js (module.js:442:10)
/usr/local/lib
└── nativescript@1.4.1 

What more do I need to do on OSX 10.11 to get nativescript-cli working? Where are those instructions?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

95reactions
thowertoncommented, Jan 29, 2017

Same issue here with Xcode 8.2.1

EDIT:

The default path for Xcode when installing Xcode command line tools was incorrect. You can confirm if this is your issue by running $ xcodebuild , which will show an error like this if this is your issue:

xcode-select: error: tool ‘xcodebuild’ requires Xcode, but active developer directory ‘/Library/Developer/CommandLineTools’ is a command line tools instance

The fix for me was to reset this with: $ sudo xcode-select --reset

after this, tns doctor returned no issues.

9reactions
aditiphadniscommented, Dec 3, 2016

I am facing the same issue. WARNING: Xcode is not installed or is not configured properly. Can anyone tell me how to resolve it?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Environment Setup - NativeScript Docs
Search for "Edit the system environment variables" in Windows Search and select · Click on "Environment variables..." in the bottom corner · Under...
Read more >
NativeScript - Installation - Tutorialspoint
To install in macOS, you must ensure that Xcode is installed or not. Xcode is mandatory for NativeScript. If Xcode is not installed,...
Read more >
Install NativeScript CLI on Mac OS X
Installation of the nativescript package is done globally. This will ensure you can use its command line tool in any Visual Studio Code...
Read more >
Setting Up A Mac For NativeScript Android Development
Installing Java 8. You need the right version of java8. Personally, I like using brew because it makes this setup a quick one-liner...
Read more >
Installing NativeScript | Getting Started with NativeScript
js installed, you just need to do a simple npm install –g nativescript at a terminal shell (or known on Windows as a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found