Can't install NodeMCU package

Hey,

I do have problems installing the NodeMCU package (ESP8266) from http://arduino.esp8266.com/versions/2.3.0/package_esp8266com_index.json

What I tried already:

  • Disabling firewall
  • setx _JAVA_OPTIONS -Djava.net.preferIPv4Stack=true
  • Connecting to internet through DS-light tunnel and native IPv4
  • Installing different Arduino IDE versions
  • Using internet connection through mobilephone

Opening the URL manually is no problem. I am running out of ideas what to do. Anybody has a good advice what else I can try?

thanks.

 Fehler beim Herunterladen von http://downloads.arduino.cc/packages/package_index.json
java.lang.RuntimeException: java.lang.Exception: Fehler beim Herunterladen von http://downloads.arduino.cc/packages/package_index.json
	at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onUpdatePressed$0(ContributionManagerUI.java:151)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.Exception: Fehler beim Herunterladen von http://downloads.arduino.cc/packages/package_index.json
	at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:131)
	at cc.arduino.contributions.packages.ContributionInstaller.download(ContributionInstaller.java:334)
	at cc.arduino.contributions.packages.ContributionInstaller.downloadIndexAndSignature(ContributionInstaller.java:309)
	at cc.arduino.contributions.packages.ContributionInstaller.updateIndex(ContributionInstaller.java:287)
	at cc.arduino.contributions.packages.ui.ContributionManagerUI.lambda$onUpdatePressed$0(ContributionManagerUI.java:147)
	... 1 more
Caused by: java.io.IOException: Received invalid http status code from server: 416
	at cc.arduino.utils.network.FileDownloader.downloadFile(FileDownloader.java:194)
	at cc.arduino.utils.network.FileDownloader.download(FileDownloader.java:128)
	at cc.arduino.contributions.DownloadableContributionsDownloader.download(DownloadableContributionsDownloader.java:129)
	... 5 more

It is possible to do a manual installation of the ESP8266 package if you are unable to get the Boards Manager installation to work but it's a bit complex because you need to create a specific folder structure for the Arduino IDE to recognize the files. The easier option is to install the package on a computer with the same OS type (windows/linux/macos) that can successfully install the package and then copy the entire installation over to your computer that can't do the installation. I can provide instructions for this if necessary, just let me know how you want to proceed.

Hey pert

thanks for your reply. I would then like to check if I can find a network that makes it possible for me to install it on my laptop. Because so far I've tested the things I mentioned above also on my laptop and it didnt work so I assume it's my internet provider that somehow makes it difficult for me to install the package.
If you could give me instructions how I can transfer an IDE installation from another computer it would be awesome.

pert:
The easier option is to install the package on a computer with the same OS type (windows/linux/macos) that can successfully install the package and then copy the entire installation over to your computer that can't do the installation. I can provide instructions for this if necessary, just let me know how you want to proceed.

You should use the URL http://arduino.esp8266.com/stable/package_esp8266com_index.json, not http://arduino.esp8266.com/versions/2.3.0/package_esp8266com_index.json as you have above. The latter will work but it is specific to version 2.3.0 so will not pick up any new packages releases after that version. The former will notify you as soon as an updated version is available (contingent upon your IDE actually being able to load that file from the internet).

Add http://arduino.esp8266.com/stable/package_esp8266com_index.json to File > Preferences > Additional Boards Manager URLs on the donor computer.

Tools > Board > Boards Manager

Wait for the downloads to complete

Click on the "esp8266 by ESP8266 Community" entry.

Click "Install"

Wait for the installation to complete

Click "Close"

Close the Arduino IDE

Add the URL http://arduino.esp8266.com/stable/package_esp8266com_index.json to File > Preferences > Additional Boards Manager URLs in the target computer.

There is a folder on the donor computer where the hardware packages are installed to via Boards Manager:

You can find the location of the folder at the line following File > Preferences > More preferences can be edited directly in the file.

On Mac OS X:
/Users/{username}/Library/Arduino15

On Windows:
Arduino IDE 1.6.5r5 and previous:
C:\Users{username}\AppData\Roaming\Arduino15
Arduino IDE 1.6.6 and later:
C:\Users{username}\AppData\Local\Arduino15

On Linux:
/home/{username}/.arduino15 (a.k.a. ~/.arduino15)

Copy that entire folder from the donor computer to the target computer. If you overwrite the file preferences.txt found in the root of the Arduino15 folder you will lose your preferences settings so you can skip overwriting that file if you like.

Start the Arduino IDE on the target computer. You should now see the ESP8266 boards in the Tools > Board menu.

Hey pert,

I managed to install it on the donor computer and followed your instructions, but it did not work out. I can't see the board on the target PC.
I even ensured that both Arduino IDE (1.6.9) versions are the same.

Hmmm.... Are you running the IDE in portable mode on either computer. If you don't know what that is see:

No I was running the installed Version on both. But it's ok now. I will use the Laptop.
But I got so many errors, even when compiling an empty sketch. A lot of headers "missing".

Sorry we weren't able to get it working on your PC. Maybe the fact that your laptop is able to do the install can give you some clue as to why Boards Manager installation doesn't work on the PC. If you wanted to continue to try to get the manual installation working there are more things we can investigate. If you post the error messages you're getting on your laptop we may be able to help you with them.