Angelo Canepa
Angelo Canepa

Reputation: 1791

Error install Azure Functions with npm package

I'm trying to install the package azure-functions-core-tools with npm but I get the following error

https://i.imgur.com/g87Qv6N.png

I'm using this command to run the install

npm install -g azure-functions-core-tools

I don't understand why is trying to use a proxy by default. I haven't set any proxy.

I've tried the following codes to remove the proxy tunnelling:

npm config rm proxy
npm config rm https-prox

npm config --global rm proxy
npm config --global rm https-proxy

set HTTP_PROXY=null
set HTTPS_PROXY=null

After running that code I get a different error

enter image description here

I also reinstalled NodeJS and deactivated all VPNs and Antivirus.

The idea is to install the CLI to authenticate to Visual Studio Code to start creating Azure Functions.

Upvotes: 0

Views: 577

Answers (1)

Giakoumis Stathis
Giakoumis Stathis

Reputation: 36

You probably have a system variable named HTTP_PROXY or HTTPS_PROXY. Even set to null forces npm to use it (https://docs.npmjs.com/misc/config#https-proxy) Go to Environmental Variables panel and delete it from there. That should do the trick

Upvotes: 2

Related Questions