These final lines hint that you should change your PATH environment variable. 
The way you should do this depends on your shell. I believe that the default 
shell by default on MacOS is zsh. You probably want to add the following line 
to your ~/.zshrc configuration file.
    
    
    export PATH=/Users/zhenxingsun/.nimble/bin:$PATH
    
    
    Run

You should then either:

  * close and reopen the Terminal
  * open a new zsh shell
  * simply source the configuration file: `source ~/.zshrc`



Without this line, the shell won't find the `nimble` executable. In any case, 
you can already code and compile in Nim.

You can check by compiling something simple:
    
    
    import strformat
    var age = stdin.readLine()
    echo fmt"I am {age} years old!"
    
    
    Run

with `nim r test.nim`

Reply via email to