问题:我无法使用安装任何库。用途:,我想安装HaxeFlixel。
(注意:在使用命令提示符安装文件时,我是新手,它是以管理员身份运行的)。
我已经安装了Haxe4.0.2(与neko一起),位于C:\HaxeToolkit (似乎是Haxe3.4.0)。
> haxelib返回使用信息选项。
> haxelib install all回来了
No hxml files found in the current directory。好像我漏掉了文件。
> haxelib install flixel返回
Error: Failed with error: X509 - Certificate verification failed, e.g. CRL, CA or signature check failed。
我还尝试安装了一个与Flixel的特定版本兼容的不同版本的Haxe。不幸的是,同样的错误出现了,甚至更多。
"releasenote": "Compatibility with Haxe 4.0.0-rc.3").
> haxelib install flixel中的again)
Error: haxelib Repository C:/WINDOWS/system32/flixel does not exist. Please run `haxelib setup` again.
Called from haxelib/client/Main.hx line 1149
Called from haxelib/client/Main.hx line 1143
Called from haxelib/client/Main.hx line 1672
Called from haxelib/client/Main.hx line 467> haxelib setup返回
Please enter haxelib repository path with write access
> C:/WINDOWS/HaxeToolkit返回
haxelib repository is now C:\WINDOWS\HaxeToolkit
> haxelib install flixel返回
Error: X509 - Certificate verification failed, e.g. CRL, CA or signature check failed
Called from haxe/remoting/HttpConnection.hx line 63
Called from C:\projects\haxe\std/sys/Http.hx line 58
Called from C:\projects\haxe\std/sys/Http.hx line 245
Called from C:\projects\haxe\std/sys/Http.hx line 60
Called from haxe/remoting/HttpConnection.hx line 64
Called from haxelib/client/Main.hx line 51
Called from haxelib/client/Main.hx line 721
Called from haxelib/client/Main.hx line 470同样,flixel没有安装。
任何帮助,以澄清什么可能是错误的,我们很感激。
发布于 2020-04-02 08:55:39
首先,Flixel与最新的稳定版本4.0.5兼容,因此不应该降级为旧版本。
听起来像是你在C:/WINDOWS/HaxeToolkit上安装了Haxe?我不确定这是个好主意,因为C:\WINDOWS是一个系统文件夹。另外,haxelib setup可能不应该直接指向HaxeToolkit文件夹--通过使用lib子文件夹(C:\HaxeToolkit\haxe\lib\)进行防御。
尽管如此,为了解决haxelib install问题,您可以从Haxelib网站下载您需要的库作为.zip文件,例如https://lib.haxe.org/p/flixel/ for Flixel:

然后可以在文件上运行haxelib install (首先用cd切换到您的Downloads文件夹):
>haxelib install "flixel-4,6,3.zip"
Installing flixel...
Current version is now 4.6.3
Done对于您需要的所有库(openfl、lime、可能是flixel-addons、flixel-templates和flixel-tools),您都必须这样做。
https://stackoverflow.com/questions/60985774
复制相似问题