我是 elixir 和 phoenix(以及 ubuntu)的新手,并且一直在努力让自己启动并运行 web 开发。 使用
创建一个新的 Phoenix 应用程序mix phoenix.new webapp
我从终端收到以下错误
Fetch and install dependencies? [Yn] y
* running mix deps.get
* error command failed to execute, please run the following command again after installation: "mix deps.get"
* running npm install && node node_modules/brunch/bin/brunch build
* error command failed to execute, please run the following command again after installation: "npm install && node node_modules/brunch/bin/brunch build"
当运行 mix deps.get
结果错误信息是
** (Mix) No package with name phoenix_ecto (from: mix.exs) in registry
我对使用这个平台还是很陌生,所以我不完全确定如何在注册表中拉取/获取/放置/下载 phoenix_ecto
包。
据我了解,这全部由十六进制包管理器处理。
几天前我确实设法启动并运行了 phoenix,并设法尝试开发了一些小型测试应用程序。 但它似乎在我鲁莽的终端的某个地方 sudoing 我设法在某处破坏了一些东西。
一些额外的信息
Elixir 1.3.4
Mix 1.3.4
npm 3.5.2
node v4.2.6
Phoenix v1.2.1
如果需要任何其他信息,我很乐意提供!
最佳答案
我设法通过解锁依赖项并更新它们来修复错误。 命令如下。
mix deps.unlock --all
mix deps.update --all
现在项目已创建,构建没有问题。 希望这对某人有帮助。
编辑 1:
如果上述方法不起作用,则可能是您的十六进制安装已损坏。这是我在原始帖子发布后大约一周的情况。可以通过删除 hex 并重新安装来修复。
rm -rf ~/.mix/archives/hex-0.15.0
mix local.hex
您的十六进制版本可能与我的不同。
hex-0.xx.x
关于postgresql - mix deps.get 失败(依赖问题),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41165926/