Skip to content

False negative for nvm #25

Description

@jameslafferty

I'm consuming command-exists as follows (only relevant code included):

import commandExists from 'command-exists';
import { promisify } from 'util';

const doesCommandExist = promisify(commandExists);

const configure = async () => {
  const isNVMInstalled = await doesCommandExist('nvm');
  const isDockerInstalled = await doesCommandExist('docker');
  console.log({ isNVMInstalled, isDockerInstalled });
};
configure();

Both are installed and usable from the command line. The output I get is:

{ isNVMInstalled: false, isDockerInstalled: true }

I'm on
MacOS Catalina 10.15.6 (19G73)
Node v12.16.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions