'not able download npm dependency from artifact repo as its passing through proxy

Not able to download dependencies for npm using npm install npm ERR! 502 Bad Gateway - GET https://artifactory/api/npm/repo

Tried using the below commands to remove proxy before npm install unset http_proxy && unset https_proxy npm config rm http_proxy https_proxy npm config set registry https://artifactory/api/npm/repo

Still facing the error 502, any quick solution will be appreciated



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source