-
-
Notifications
You must be signed in to change notification settings - Fork 209
使用brew services start nginx遇到问题 #951
Description
brew services start nginx
Warning: Calling brew services'. This command needs to be refactored, as it is written in a style that is deprecated! Use inherits from
Homebrew::AbstractCommand' ( see https://docs.brew.sh/External-Commands ) instead.
Please report this issue to the Homebrew/homebrew-services tap, or even better, submit a PR to fix it:
/opt/homebrew/Library/Taps/homebrew/homebrew-services/cmd/services.rb:9
Error: uninitialized constant Homebrew::Service
/opt/homebrew/Library/Homebrew/formulary.rb:349:in block in load_formula_from_api' /opt/homebrew/Library/Homebrew/formulary.rb:252:in
initialize'
/opt/homebrew/Library/Homebrew/formulary.rb:252:in new' /opt/homebrew/Library/Homebrew/formulary.rb:252:in
load_formula_from_api'
/opt/homebrew/Library/Homebrew/formulary.rb:886:in load_from_api' /opt/homebrew/Library/Homebrew/formulary.rb:879:in
klass'
/opt/homebrew/Library/Homebrew/formulary.rb:514:in get_formula' /opt/homebrew/Library/Homebrew/formulary.rb:927:in
factory'
/opt/homebrew/Library/Taps/homebrew/homebrew-services/cmd/services.rb:89:in services' /opt/homebrew/Library/Homebrew/brew.rb:98:in
public_send'
/opt/homebrew/Library/Homebrew/brew.rb:98:in <main>' If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core): https://github.com/homebrew/homebrew-services/issues/new lyy_mac@MacBook-Pro-14 ~ % brew tap homebrew/services lyy_mac@MacBook-Pro-14 ~ % brew tap homebrew/services lyy_mac@MacBook-Pro-14 ~ % brew services Warning: Calling
brew services'. This command needs to be refactored, as it is written in a style that is deprecated! Use inherits from `Homebrew::AbstractCommand' ( see https://docs.brew.sh/External-Commands ) instead.
Please report this issue to the Homebrew/homebrew-services tap, or even better, submit a PR to fix it:
/opt/homebrew/Library/Taps/homebrew/homebrew-services/cmd/services.rb:9
Error: uninitialized constant Homebrew::Service
/opt/homebrew/Library/Homebrew/formula.rb:1236:in service' /opt/homebrew/Library/Homebrew/formula.rb:1215:in
plist_name'
/opt/homebrew/Library/Homebrew/formula.rb:1223:in launchd_service_path' /opt/homebrew/Library/Taps/homebrew/homebrew-services/lib/service/formula_wrapper.rb:58:in
service_file'
/opt/homebrew/Library/Taps/homebrew/homebrew-services/lib/service/formula_wrapper.rb:92:in plist?' /opt/homebrew/Library/Taps/homebrew/homebrew-services/lib/service/formulae.rb:12:in
select'
/opt/homebrew/Library/Taps/homebrew/homebrew-services/lib/service/formulae.rb:12:in available_services' /opt/homebrew/Library/Taps/homebrew/homebrew-services/lib/service/formulae.rb:17:in
services_list'
/opt/homebrew/Library/Taps/homebrew/homebrew-services/lib/service/commands/list.rb:13:in run' /opt/homebrew/Library/Taps/homebrew/homebrew-services/cmd/services.rb:102:in
services'
/opt/homebrew/Library/Homebrew/brew.rb:98:in public_send' /opt/homebrew/Library/Homebrew/brew.rb:98:in
If reporting this issue please do so at (not Homebrew/brew or Homebrew/homebrew-core):
https://github.com/homebrew/homebrew-services/issues/new