def METHOD_NAME(
    *, logger: Union[logging.Logger, PrefixAdaptor, RunwayLogger] = LOGGER
) -> None:
    """Ensure npm is installed and in the current path.
    Args:
        logger: Optionally provide a custom logger to use.
    """
    if not which("npm"):
        logger.error(
            '"npm" not found in path or is not executable; '
            "please ensure it is installed correctly"
        )
        raise NpmNotFound