Greetings, everyone! I'm new to the Nim programming language.
I'm trying to use nimble to install a package, but every time I get an error. For example, when I'm trying to install the package arraymancer, the following error is output:
Downloading https://github.com/mratsim/Arraymancer using git oserr.nim(94) raiseOSError Error: unhandled exception: O sistema não pode encontrar o arquivo especificado. Additional info: "Requested command not found: \'git ls-remote --tags https://github.com/mratsim/Arraymancer\'. OS error:" [OSError]
I don't know if there is something wrong with my git, but I couldn't fix the error. Could someone help me?
Hey there! Sorry for the delay, I could not use the computer yesterday.
When I type git ls-remote I get this:
fatal: No remote configured to list refs from.
SOLVED!
I use cmder as my prompt of choice, but nimble calls the standard Windows cmd, and the prompt didn't know what git was because it was not in the PATH variables (unlike the cmder that has a script that automatically loads environment variables) .
SOLUTION: simply add git.exe path to the PATH variable.