-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
purs --version raise error , probably installation issue #27
Comments
Installing via npm doesn’t normally create a purs.ps1 file, as far as I’m aware, so that might be what’s causing it to get tripped up. Can you let me know what version of npm you’re using and can you also show us the contents of that file please? |
I think it might if you're using npm in powershell, similar to the way it creates a batch file when using cmd. |
Here's some more info on this issue actually: https://discourse.purescript.org/t/why-not-purs-exe-instead-of-purs-bin/1737 Seems to be to do with the local configuration. |
I was using powershell version 7.1.0 and npm version 7.3.0 And for the record, it is in my path
|
Some more details If I explicitly call purs.cmd from command shell it works
|
Does the solution in the linked discourse thread work? This in particular: https://discourse.purescript.org/t/why-not-purs-exe-instead-of-purs-bin/1737/13 |
I wonder if we should consider renaming it to |
I kinda fixed it and now both purs.cmd and purs.exe work in their respective environments |
I did not try the solution in the discourse forum |
Yeah, agreed - just figured we should be 100% sure that this is being caused by the same thing. From what @shishini has done to fix it locally, sounds like it is indeed. Thanks! |
Just a reminder that this issue still exist, and when i updated purescript to version 0.14.2 (from 0.13.8), in and i edited |
When I run purs --version I get an error
This is how I installed purescript
Note that commands such as
spago test
andspago repl
seem to run fineAlso note I am running windows 10
The text was updated successfully, but these errors were encountered: