Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install spring boot CLI on Mac?

I am trying to install the Spring Boot CLI. I followed the instructions from the website. (https://docs.spring.io/spring-boot/docs/current/reference/html/getting-started-installing-spring-boot.html) The error I am getting is:

$ spring --version rbenv: spring: command not found

The `spring' command exists in these Ruby versions: 2.4.0

I ran all the brew and bundle installs, but I am still running into issues. Any suggestions?

like image 897
TMan Avatar asked Dec 07 '17 21:12

TMan


1 Answers

Better using Homebrew

  1. Install Homebrew using /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

  2. Check if Homebrew installed using brew -v

  3. Update Homebrew packager brew tap spring-io/tap

  4. Install Spring Boot CLI using brew install spring-boot

Homebrew installs spring to /usr/local/bin

  1. Check Spring Boot CLI using spring version

If you want to remove it use brew uninstall spring-boot, add additional --force to force it


Update: Repository for Spring Boot has been moved from pivotal/tap to spring-io/tap

See the documentation here

like image 82
aswzen Avatar answered Sep 22 '22 05:09

aswzen