I don't know. just gonna try lein.
Ah, yeah "This cmdlet was introduced in PowerShell 3.0." -- I bet you have Powershell 2.x on Windows 7?
Let me check ..
Not sure how to check the version
Try $PSVersionTable
PS C:\Users\sean> $PSVersionTable
Name Value
---- -----
PSVersion 5.1.18912.1001
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.18912.1001
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
2.0
So, that means the script won't work no matter what ?
Right. You need a more up-to-date version of Powershell.
Either upgrade PS or change the script
A quick Bing search suggests that you can do the equivalent of Invoke-WebRequest
in PS2 but it relies on stuff in .NET and it's pretty nasty, from the looks of it.
Nasty as in 'forget it' ?
The reality of Clojure development is that nearly everyone uses Mac and Linux so Windows support in the tooling has always lagged behind. Leiningen took ages to get Windows support. Same for Boot. Same for clj
(and we're only in alpha right now).
The answer to that depends on how comfortable you are with PS programming I think...
Well, if I cant upgrade my PS, just gonna try lein
Do you know off hand if PS can be upgraded ?
https://devblogs.microsoft.com/scripting/weekend-scripter-install-powershell-3-0-on-windows-7/
(that's old -- maybe you can install even newer versions now?)
Which one should I do : the script or lein ?
Like I said, if you feel comfortable enough working with PS to try the upgrade etc, go ahead. I don't know what your background is on Windows.
If you just want to learn Clojure at this point, use lein.bat
and follow the tutorials that use Leiningen.
At one point, I managed to get Leiningen working on Windows XP without too much pain, so lein.bat
should be less work for you to get to actually trying Clojure out.
(I'm on Windows 10 now, so I use the PS clojure
installer, as well as using the Linux clojure
installer on WSL/Ubuntu -- and the brew install clojure
approach on macOS)
You have all the bases covered.
Gonna try to conquer both the upgrade and lein. thanks