简体   繁体   English

在混合任务列表中找不到十六进制任务

[英]Hex tasks not found in list of mix tasks

I have a very simple project and I am trying to publish the first version to hex.我有一个非常简单的项目,我正在尝试将第一个版本发布为十六进制。 However I cannot run the hex.publish task.但是我无法运行hex.publish任务。

I get the error ** (Mix) The task "hex.publish" could not be found.我收到错误**(混合)找不到任务“hex.publish”。

I am following these hex instructions .我正在遵循这些十六进制说明

My mix.exs file looks like the following.我的mix.exs文件如下所示。

defmodule Ace.Mixfile do
  use Mix.Project

  def project do
    [app: :ace,
     version: "0.2.0",
     elixir: "~> 1.0",
     build_embedded: Mix.env == :prod,
     start_permanent: Mix.env == :prod,
     deps: deps]
  end

  def application do
    [
      applications: [:logger],
      mod: {Ace, []}
    ]
  end

  defp deps do
    []
  end
end

You might not have hex installed.您可能没有安装hex According to hex usage , please use根据十六进制用法,请使用

mix local.hex

in your terminal or CMD console.在您的终端或 CMD 控制台中。 Then mix hex.publish should work.然后mix hex.publish应该可以工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM