Closed sunmingtao closed 4 years ago
This is because there happens to be a ruby gem named spring installed as well. https://github.com/spring-guides/gs-spring-boot/issues/17
Find out the path to the Spring boot CLI spring command
which spring
spring is /Users/msun/.rvm/rubies/ruby-2.6.3/bin/spring spring is /Users/msun/.sdkman/candidates/springboot/current/bin/spring
Then use the full path of the command
/Users/msun/.sdkman/candidates/springboot/current/bin/spring --version
Alternatively,
cd /usr/local/bin
sudo ln -sf /Users/msun/.sdkman/candidates/springboot/current/bin/spring ./springboot
Then
springboot --version
Run
spring init
Get error