如何彻底删除Java旧版本及StackCabal包后重新安装指定旧版本?

2026-04-01 04:021阅读0评论SEO问题
  • 内容介绍
  • 文章标签
  • 相关推荐

本文共计402个文字,预计阅读时间需要2分钟。

如何彻底删除Java旧版本及Stack/Cabal包后重新安装指定旧版本?

最近在cabal文件中添加了一些新的build-deps,但运行stack build时收到以下错误:While attempting to... 我最近在cabal文件中添加了一些新的build-deps,但运行stack build时遇到以下错误:

我最近在我的cabal文件中添加了一些新的build-deps但是现在当我运行stackbuild时我收到以下错误--Whileattempting

我最近在我的cabal文件中添加了一些新的build-deps但是现在当我运行 stack build 时我收到以下错误

-- While attempting to add dependency,

Could not find package api-builder in known packages

-- Failure when adding dependencies:

api-builder: needed (0.11.0.0), not present in build plan (latest applicable is 0.11.0.0)

http-client: needed (0.4.20), 0.4.27 found (latest applicable is 0.4.20)

http-types: needed (0.8.6), 0.9 found (latest applicable is 0.8.6)

needed for package: music-haskell-0.1.0.0

Recommended action: try adding the following to your extra-deps in /Users/.../src/music-haskell/stack.yaml

- api-builder-0.11.0.0

You may also want to try the stack solver command

当我运行 stack solver 时我收到有关http-types包的错误

cabal: Could not resolve dependencies:

trying: music-haskell-0.1.0.0 (user goal)

next goal: http-types (dependency of music-haskell-0.1.0.0)

如何彻底删除Java旧版本及Stack/Cabal包后重新安装指定旧版本?

rejecting: http-types-0.9 (conflict: music-haskell > http-types0.8.6)

rejecting: http-types-0.8.6, 0.8.5, 0.8.4, 0.8.3, 0.8.2................

(global constraint requires 0.9)

Dependency tree exhaustively searched.

根据我的理解看起来我已经安装了 http-types-0.9 但现在我需要 http-types-0.8.6 . 我最初尝试使用 $stack install http-types 手动安装它但是我收到以下错误

Error parsing targets: Specified target version 0.8.6 for package http-types does not match snapshot version 0.9

当我看到我是否可以做 $ stack uninstall 但看起来它已被弃用了 .

如何摆脱 http-type 的快照/全局目标

本文共计402个文字,预计阅读时间需要2分钟。

如何彻底删除Java旧版本及Stack/Cabal包后重新安装指定旧版本?

最近在cabal文件中添加了一些新的build-deps,但运行stack build时收到以下错误:While attempting to... 我最近在cabal文件中添加了一些新的build-deps,但运行stack build时遇到以下错误:

我最近在我的cabal文件中添加了一些新的build-deps但是现在当我运行stackbuild时我收到以下错误--Whileattempting

我最近在我的cabal文件中添加了一些新的build-deps但是现在当我运行 stack build 时我收到以下错误

-- While attempting to add dependency,

Could not find package api-builder in known packages

-- Failure when adding dependencies:

api-builder: needed (0.11.0.0), not present in build plan (latest applicable is 0.11.0.0)

http-client: needed (0.4.20), 0.4.27 found (latest applicable is 0.4.20)

http-types: needed (0.8.6), 0.9 found (latest applicable is 0.8.6)

needed for package: music-haskell-0.1.0.0

Recommended action: try adding the following to your extra-deps in /Users/.../src/music-haskell/stack.yaml

- api-builder-0.11.0.0

You may also want to try the stack solver command

当我运行 stack solver 时我收到有关http-types包的错误

cabal: Could not resolve dependencies:

trying: music-haskell-0.1.0.0 (user goal)

next goal: http-types (dependency of music-haskell-0.1.0.0)

如何彻底删除Java旧版本及Stack/Cabal包后重新安装指定旧版本?

rejecting: http-types-0.9 (conflict: music-haskell > http-types0.8.6)

rejecting: http-types-0.8.6, 0.8.5, 0.8.4, 0.8.3, 0.8.2................

(global constraint requires 0.9)

Dependency tree exhaustively searched.

根据我的理解看起来我已经安装了 http-types-0.9 但现在我需要 http-types-0.8.6 . 我最初尝试使用 $stack install http-types 手动安装它但是我收到以下错误

Error parsing targets: Specified target version 0.8.6 for package http-types does not match snapshot version 0.9

当我看到我是否可以做 $ stack uninstall 但看起来它已被弃用了 .

如何摆脱 http-type 的快照/全局目标