您好,有人可以告诉我如何安装Data.Aeson
软件包吗?我遇到以下错误:
WARNING: cache is out WoAfR NdaItNeG:: Cc:a/cUhsee riss/ aodurti aonf.b edrcaotev:i ciC/:Ap/pUDsaeta/rLso/caadlr/iParno.gbrearmcso/vsitcaic/kA/pxp8D6a_t6a4/-Lwoicnadlo/ws/Pgrhocg-r8a.ms0./2s\ltiabc\kp/xack8a6g_e6.4c-ownfi.ndd\poawcsk/agghec.-c8a.c0h.e2
\glhicb \wpialclk asgeee. caonn fo.ldd\ pvaicekwa goef. ctahcihse
pgahcck awgiel ld bs.e eU saen 'oglhdc -vpikegw roefc atchhies' ptaoc kfaigxe.
db. Use 'ghc-pkg recache' to fix.
Error parsing targets: Directory not found: Data.Aeson
下面显示为Use ghc-pkg recache
。当我尝试运行此命令时,出现以下错误:
ghc-pkg.exe: C:\Program Files\Haskell Platform\8.4.2\lib\package.conf.d\package.cache: you don't have permission to modify this file
我尝试同时安装Data.Aeson
和cabal install Data.Aeson
的{{1}}。使用后者时,出现以下错误:
Stack install Data.Aeson
答案 0 :(得分:4)
Data.Aeson
不是软件包,它是软件包中称为aeson
的许多模块之一。尝试cabal install aeson
。