elm-lang / elm-repl

A REPL for Elm
BSD 3-Clause "New" or "Revised" License
170 stars 34 forks source link

Locally installed elm points to incorrect repl binary? #114

Closed Hurtak closed 8 years ago

Hurtak commented 8 years ago

I installed latest alpha (0.17) locally through npm, when i then started repl it showed 0.16 version

> ./node_modules/.bin/elm repl
---- elm repl 0.16.0 -----------------------------------------------------------
 :help for help, :exit to exit, more at <https://github.com/elm-lang/elm-repl>
--------------------------------------------------------------------------------
> 

When I used directly elm-repl binary it started correct version

> ./node_modules/.bin/elm-repl 
---- elm repl 0.17.0 -----------------------------------------------------------
 :help for help, :exit to exit, more at <https://github.com/elm-lang/elm-repl>
--------------------------------------------------------------------------------
> 

Also note that I have 0.16 installed globally on my system with npm. Is this expected behavior?

Hurtak commented 8 years ago

Oh I see

In all these cases we are simply running 'elm-<command>' so if you create an
executable named 'elm-foobar' you will be able to run it as 'elm foobar' as
long as it appears on your PATH.

So it is expected, behavior. Closing this