简体   繁体   中英

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?

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 pivotal/tap

  4. Install Spring Boot CLI using brew install springboot

Homebrew installs spring to /usr/local/bin

  1. Check Spring Boot CLI using spring version

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

Windows users:

Download the zip

https://repo.spring.io/release/org/springframework/boot/spring-boot-cli/2.0.2.RELEASE/spring-boot-cli-2.0.2.RELEASE-bin.zip

Extract & Run spring.bat inside the /bin folder

Mac users:

$> brew tap pivotal/tap

$> brew install springboot

Spring Boot has relocated to spring-io/tap

brew tap spring-io/tap
brew uninstall springboot
brew install spring-boot

您可以使用 sdkman http://sdkman.io/我无法提交如此简短的答案,因此添加了更多文本...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM