Skip to main content
paolog
Associate III
May 4, 2026
Solved

Error installing STMicroelectronics.button_part_drivers.2.0.0 pack

  • May 4, 2026
  • 3 replies
  • 229 views

Thank you @B.Montanari  for the complete guide. Unfortunately on my computer the project is not created as packs can't be downloaded, error is the following (in this case for button pack):

Error installing STMicroelectronics.button_part_drivers.2.0.0 pack

Could not save pack of pack-URL: https://developer.st.com/st-pack-server/api/v1/pack/STMicroelectronics.button_part_drivers.2.0.0.pack, got: Unsupported `GLOBAL_AGENT.HTTP_PROXY` configuration value: URL protocol must be "http:".

 

I'm behind a proxy (set at system level), and if I use the URL listed I'm able to download and manually install the pack. I tried setting proxy information on MX2 as IP:port with no result.

Is there a way to solve this?

BR

Edit: moved from How to create a new project with STM32CubeMX2

Best answer by paolog

Found the reason of my issue. I had Windows system variables HTTP_PROXY and HTTPS_PROXY set without "http://" in front of IP. Once corrected everything worked.

3 replies

Oussama_TROUDI
Technical Moderator
May 4, 2026

Hi @paolog 

In this case, what you need is to configure a proxy or a certificate to be able to access the servers and download packages.

  • Get your certificate from your company IT or company portal.
  • Place it under C:\certificate, for example.
  • Add the Windows environment variable NODE_EXTRA_CA_CERTS with the path to this certificate file. (Make sure that the path has no quotes.)

Oussama_TROUDI_0-1777904877520.png

  • Finally, restart STM32CubeMX2.

You can also refer to this article for more details on: How to configure the proxy or certificate 

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
paolog
paologAuthor
Associate III
May 5, 2026

Hi @Oussama_TROUDI , thank you for your reply.

I followed the directions on the above link as much as possible, as we don't use Visual Studio Code. We installed the certificate, defined the variable NODE_EXTRA_CA_CERTS to point to the certificate file, and defined proxy in MX2 as "http://Proxy-address:port". But the error is still there.

Should system variable GLOBAL_AGENT_HTTP_PROXY be defined?

Any other option to solve this?

Thank you.

paolog
paologAuthorAnswer
Associate III
May 5, 2026

Found the reason of my issue. I had Windows system variables HTTP_PROXY and HTTPS_PROXY set without "http://" in front of IP. Once corrected everything worked.

Oussama_TROUDI
Technical Moderator
May 5, 2026

Hi @paolog 

I'm glad you found the root cause and that everything is working now!!

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.