Hi All,
I am new to Nim. I downloaded latest Nim, extracted it and installed using finish.exe. Everything is working fine and everything is added to environment variables. But nimble is not working. I used command 'nimble -v', but it gave error about command not recognized. When I tried to install using 'koch nimble', it gave following error :-
deps.cmd: git -C "C:UserspcDesktopDesktop1studysetupsnim-1.4.8_x64nim-1.4.8distnimble" rev-parse --show-cdup D:anightliesnightliesnim-1.4.8koch.nim(682) koch D:anightliesnightliesnim-1.4.8koch.nim(148) bundleNimbleExe D:anightliesnightliesnim-1.4.8toolsdeps.nim(37) cloneDependency D:anightliesnightliesnim-1.4.8toolsdeps.nim(16) isGitRepo D:anightliesnightliesnim-1.4.8toolsdeps.nim(10) execEx D:anightliesnightliesnim-1.4.8libpureosproc.nim(1607) execCmdEx D:anightliesnightliesnim-1.4.8libpureosproc.nim(742) startProcess D:anightliesnightliesnim-1.4.8libpureincludesoserr.nim(94) raiseOSError Error: unhandled exception: The system cannot find the file specified. Additional info: "Requested command not found: 'git -C "C:\Users\pc\Desktop\Desktop1\study\setups\nim-1.4.8_x64\nim-1.4.8\dist\nimble" rev-parse --show-cdup'. OS error:" [OSError]
Please Help.
My guess is that your anti-virus quarantined it. Nimble.exe gets false positives. Consider installing 1.6.0 instead (why did you install 1.4.8 btw?)
Btw if you want a quick way to install multiple Nim versions, consider using choosenim: https://github.com/dom96/choosenim/
Hi,
Thanks for the reply. I updated NIM to 1.6.0 using choosenim. I was still facing error. I did following things to make nimble work :-
Nimble started working after doing above things. Hope this helps anyone searching for similar questions.
Thanks.
yeah, you need to update the PATH, choosenim doesn't do that for you on Windows right now.
Indeed, Nimble depends on git (most packages are stored in a git repo).