Elm init results in InternalException (HostCannotConnect "package.elm-lang.org" [Network.Socket.setSockOpt: unsupported operation (Protocol not available)])

Hi all,

Installed elm 0.19.2 (upgraded from 0.19.1), but cannot elm init a new project, resulting in the following error message instead:

InternalException (HostCannotConnect “package.elm-lang.org” [Network.Socket.setSockOpt: unsupported operation (Protocol not available)])

https://package.elm-lang.org/all-packages works fine with all browsers. Host is macOS 10.15.8. Any ideas on how to fix this? Thanks!

This may all be obvious but make sure to expand the download for Mac which is compressed, rename it “elm”, move it to /usr/local/bin, and run “chmod a+x /usr/local/bin/elm”. Make sure your elm.json, etc, now references “0.19.2” and that you have /usr/local/bin on your PATH and that you don’t have an old npm version of Elm hanging around, which you can uninstall.

But maybe GitHub is just offline again…

Github is in fact having more issues. It’s been down 3 times this week as of right now. Not sure if that’s the cause of the initial issue.