D
D
DarkByte20152017-01-26 23:25:59
linux
DarkByte2015, 2017-01-26 23:25:59

Why is there an error when installing nativescript?

I'm trying to install nativescript with the command "sudo npm install -g nativescript". During installation, there are a lot of errors related to android sdk.
Something like that

spoiler
Cannot find a compatible Android SDK for compilation. To be able to build for Android, install Android SDK 22 or later.
Run $ android to manage your Android SDK versions.
You need to have the Android SDK Build-tools installed on your system. You can install any version in the following range: '>=23 <=25'.
Run android from your command-line to install required Android Build Tools. In case you already have them installed, make sure ANDROID_HOME environment variable is set correctly.
You need to have Android SDK 22 or later and the latest Android Support Repository installed on your system.
Run $ android to manage the Android Support Repository. In case you already have it installed, make sure ANDROID_HOME environment variable is set correctly.
EACCES: permission denied, mkdir '/home/admin/.local/share/.nativescript-cli'

Android SDK worth it! The version is suitable and has registered everything that is needed in the environment variables. In addition, a very strange very last message that he did not have enough rights to something there. Not only is it in the home directory where root rights are not usually needed at all, but I launched it with sudo!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question