Error: cannot open file: winim/lean(nim学习系列)

某日尝试编译一个文件,报错如下。

Error: cannot open file: winim/lean

根据错误消息,需要安装“winim”,但是安装失败如下所示。

cmdshell> nimble install winim --verbose
    Reading official package list
    Prompt: winim not found in any local packages.json, check internet for updated packages? [y/N]
    Answer: y
Downloading Official package list
     Trying https://github.com/nim-lang/packages/raw/master/packages.json
   Warning: Could not download: 请求的名称有效,但是找不到请求的类型的数据。
     Trying https://irclogs.nim-lang.org/packages.json
   Warning: Could not download: 404 Not Found
     Trying https://nim-lang.org/nimble/packages.json
    Success Package list downloaded.
    Reading official package list
     Error: Package not found.

手动安装“winim”
第一步,下载并解压 winim-master.zip
第二步,打开 cmd.exe ,并切换到解压目录,目录下包含有“winim.nimble”文件。
第三步,运行“nimble install”命令即可。

引用

https://github.com/khchen/winim
https://github.com/nim-lang/nimble#nimble-install

From: https://www.cnblogs.com/StudyCat/p/17389376.html

posted @ 2023-05-10 21:14  StudyCat  阅读(290)  评论(0编辑  收藏  举报