-
Notifications
You must be signed in to change notification settings - Fork 661
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
Cannot Operate Offline #991
Comments
The first time you use these tools, they download the standard library and any other libraries you need. This requires an internet connection. I was able to run The REPL and reactor will download to the current directory, and this will cause a few seconds of delay (or this error if you're not connected). A possible improvement is to have a default, standard location for these libraries where the repl can look if you run it where there aren't libraries already. |
@mgold I just tried elm-make offline with everything already downloaded and had no luck (see elm-lang/elm-make#34) - how recently have you been able to do that successfully? |
I checked before posting the comment. I just tried it again and it still works, using latest versions of everything.
Obviously if you don't have the core libraries installed it's going to try to download them. But I haven't observed the compiler making a network request when it was unnecessary for it to do so. |
Hmmm, now I can't reproduce anymore. Not sure what the difference was, since I had definitely successfully built end-to-end on the project where I was having that problem, so I know everything was downloaded...at any rate, going to close elm-lang/elm-make#34 until I can actually reproduce it. |
I'm gonna say we should follow along at elm-lang/elm-repl#54 which is reporting the same thing. The root is that you need to get packages off the internet to use them. It may be possible to put them in a central place (perhaps only for |
I've also experienced this myself at elm-lang/elm-make#156 (comment) but instead of port 80 it's 443. when I run commands with sudo it works. |
You cannot run
elm-make
orelm-repl
without an Internet connection. Here is an example error:This appears to be the problem behind elm-lang/elm-make#34 and I encountered the problem just using the REPL. Establishing a wi-fi connection on my laptop fixed the problem.
The text was updated successfully, but these errors were encountered: