I use Windows 10. The version of nim is 0.2. 2.
I would like to use jester. So I ran "nimble install jester" at the command prompt.
The installation was successful and no errors occurred. However, an error occurs in "import jester".
import jester
routes:
get "/":
resp h1("Hello world")
D:\project\nim>nim c -r main.nim
Hint: used config file 'F:\scoop\apps\nim\current\config\nim.cfg' [Conf]
Hint: system [Processing]
Hint: widestrs [Processing]
Hint: io [Processing]
Hint: main [Processing]
D:\project\nim\main.nim(1, 8) Error: cannot open file: jester
Why is this? If anyone knows, please let me know the solution. Thank you in advance.
on Windows you have to add two paths to your system setting; Nim install path and nimble storage path.
for me it's :
C:\Programs\nim-0.20.0_x64\bin
D:\Users\ffred\.nimble\bin
I set those paths before using "nimble install.." command. don't know where it goes if you don't set the path before.
(a good tool to easily deal with system variables on Windows : Rapid Environment Editor
https://www.rapidee.com/en/about
Whoaa..!! really painful to format a so simple message here..!?
I tried choosenim( https://github.com/dom96/choosenim/releases ) and it doesn't install nim.
First, I downloaded "hoosenim 386 .0 _ windows _ i -0.4 .zip" from the choosenim release page. Answer zip and run runme.bat.
There were no particular errors and processing ended. Thereafter, running "nim -v" and "choosenim" at the command prompt also displays "Not recognized as an internal or external command, operable program, or batch file.".
Thank you for your reply!
Setting PATH now allows all choosenim, nim and nimble commands to be used. Thank you!
However, you still cannot call modules like jester from nim. :_(