Skip to content
This repository was archived by the owner on Nov 17, 2022. It is now read-only.
This repository was archived by the owner on Nov 17, 2022. It is now read-only.

setup/native-script.rb requires sudo #763

Open
@gardner

Description

@gardner

https://github.com/NativeScript/docs/blob/master/start/quick-setup.md requests the user to run a remote script with sudo.

As someone that already has all the dependencies required to just execute npm install -g nativescript and go onto the next page I found it off-putting to have to read through the very thorough and clear quick-setup guide which requested that I execute a remote script with root privileges. I am not comfy giving a remote script root privileges on my machine. I had to open the script to determine what needed to be installed. The only dependency that needs root privileges to install are the ruby gems and that is only if the user hasn't already installed rbenv or rvm. In this case the user may end up with permission problems because the install script does not check for those conditions before running sudo gem install.

Additionally this script falsely represents what it is doing with your system by executing code from a different URL than the URL that the user types in. For an example please see
https://github.com/NativeScript/nativescript-cli/blob/master/setup/native-script.rb#L5 and
https://github.com/NativeScript/nativescript-cli/blob/master/setup/native-script.rb#L11

This could be entirely avoided by simply listing what the requirements are instead of trying to automatically install them for the developer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions