guarinogabriel / Mac-CLI

 macOS command line tool for developers – The ultimate tool to manage your Mac. It provides a huge set of command line commands that automatize the usage of your Mac.
MIT License
8.86k stars 334 forks source link

Errors with update process #171

Closed vsabha1 closed 3 years ago

vsabha1 commented 4 years ago

I'm running MacOS catalina version, but am receiving the following errors when using the command mac update

mac update
...
...
Updating npm and its installed packages...
npm install npm -g; npm update -g;

/usr/local/bin/mac-cli/plugins/general: line 34: npm: command not found
/usr/local/bin/mac-cli/plugins/general: line 34: npm: command not found
Updating Yarn's installed packages...
yarn global upgrade;

/usr/local/bin/mac-cli/plugins/general: line 40: yarn: command not found
Updating installed Ruby gems...
sudo gem update --system; sudo gem update

Latest version already installed. Done.
Updating installed gems
Updating bundler
ERROR:  While executing gem ... (Gem::FilePermissionError)
    You don't have write permissions for the /usr/bin directory.
Updating installed pip packages...
...
...
robspekschoor commented 3 years ago

@vsabha1 you can solve this once but doing: sudo gem update -n /usr/local/bin/