3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

mixコマンドを使えない時に確認すること。** (Mix) The task "mix xxxxxx" could not be found Note no mix.exs was found in the current directory

Posted at

例えばmix hex.infoと打つとこんな風に出力されることがある。

** (Mix) The task "hex.info" could not be found Note no mix.exs was found in the current directory

mix archiveを確認して次のようになる場合は、必要なhex,phxがインストールされていない。


% mix archive
No archives currently installed.

mix archive.install hex phx_newを実行する。
また、このコマンドは最新のphoenixのバージョンをインストールする。


% mix archive.install hex phx_new
Could not find Hex, which is needed to build dependency :phx_new
Shall I install Hex? (if running non-interactively, use "mix local.hex --force") [Yn] Y
* creating /Users/kuraya/.kiex/mix/archives/elixir-1.11.1/hex-0.20.6
Resolving Hex dependencies...
Dependency resolution completed:
New:
  phx_new 1.5.6
* Getting phx_new (Hex package)
All dependencies are up to date
Compiling 10 files (.ex)
Generated phx_new app
Generated archive "phx_new-1.5.6.ez" with MIX_ENV=prod
Are you sure you want to install "phx_new-1.5.6.ez"? [Yn] Y
* creating /Users/kuraya/.kiex/mix/archives/elixir-1.11.1/phx_new-1.5.6

再度mixコマンドを使えるか確認する。


% mix hex.info
Hex:    0.20.6
Elixir: 1.11.1
OTP:    23.0

Built with: Elixir 1.11.1 and OTP 21.3
3
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?