All Collections
API
App Center CLI error: "npm ERR!" message
App Center CLI error: "npm ERR!" message

How to use App Center's CLI when you are behind a proxy firewall

Jihye E avatar
Written by Jihye E
Updated over a week ago

When you install App Center's CLI by running the command 

npm install -g appcenter-cli

and if you receive an error message:

npm ERR! If you are behind a proxy, please make sure that the npm ERR! 'proxy' config is set properly. See: 'npm help config'

This means that you are behind a proxy firewall. To successfully install App Center's CLI, you have to allowlist the DNS and configure npm to use a proxy. 

For example,

npm config set proxy http://proxy.company.com:8080
npm config set https-proxy http://proxy.company.com:8080 

Did this answer your question?