Skip to content
This repository was archived by the owner on Mar 20, 2025. It is now read-only.
This repository was archived by the owner on Mar 20, 2025. It is now read-only.

使用brew services start nginx遇到问题 #951

@22-rookie

Description

@22-rookie

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions