Skip to content

Unknown command when running Homebrew test #794

@dnicolson

Description

@dnicolson

Describe the bug

Running Homebrew tests that require binaries managed by asdf can fail, in this instance with this message:
unknown command: node. Perhaps you have to reshim?

This appears to be because in the test environment the HOME environment variable is changed by Homebrew. It appears as though asdf depends on this.

Homebrew Node.js installations and nvm do not have this problem, but as mentioned in #785 maybe this is unavoidable and should just be added to the Common Homebrew Issues section?

To Reproduce

  1. brew update
  2. brew install emscripten
  3. brew test emscripten

Expected behavior

The test to run.

Actual behavior

The node command was not found.

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