Hacker News new | ask | show | jobs
by 64bitbrain 3631 days ago
Does it need to be ran as root?

Downloading m-cli from git to /usr/local fatal: could not create work tree dir '/usr/local/m-cli': Permission denied Failed to clone => https://github.com/rgcr/m-cli.git

Off course it won't be able to access the /usr/local/

2 comments

Most people using this probably have homebrew installed, which makes /usr/local writable for the main user.
The README addresses this (with the somewhat elliptical "You need privileges"), and points out a work-around:

> You can also install it in a different path

    INSTALL_DIR=$HOME/.m-cli sh <(curl -fsSL https://raw.githubusercontent.com/rgcr/m-cli/master/install.sh)
> Note: You need privileges