Skip to content

Issue: Instaler requires root #33

Description

@gtrabanco

Currently when you install nan cli with command:

curl -fsSL https://nan.builders/install | bash

It requires root password because it is instaling the cli in /usr/local/bin it should be installed in ${HOME}/.local/bin instead and make sure that path is on PATH var, if it isn't then just add to ~/.profile:

export PATH="${PATH:+${PATH}:}${HOME}/.local/bin"

To check if route is on path already you can use conditional in install script like:

    if [[ -d "${HOME}/.local/bin" && ":$PATH:" != *":${HOME}/.local/bin:"* ]]; then
        export PATH="${PATH:+${PATH}:}${HOME}/.local/bin"
    fi

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions