407 Proxy Authentication Required: npm@latest

How  can  I   run  NPM  commands behind a company  corporate proxy server?I tried to google online with no  success.
npm config set proxy http://xxx.cc.zz:8080
npm config set https-proxy http://xxx.cc.zz:8080
Frank DannyAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

leakim971PluritechnicianCommented:
could you confirm this proxy allow anonymous access ?
0
Frank DannyAuthor Commented:
Thank you @leakim971.How can I confirm that?
0
leakim971PluritechnicianCommented:
just try with a not corporate browser (not configured) for example, check a browser config or using shell with wget :

export http_proxy=http://xxx.cc.zz:8080
wget http://some.website.com/path/to/file.zip
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

leakim971PluritechnicianCommented:
did you try my last suggestion?
0
Frank DannyAuthor Commented:
@leakim971..Thank you again for your help..The proxy doesn't allow  anonymous access.
0
leakim971PluritechnicianCommented:
if you've a user and password, the following should work :
npm config set proxy http://user:password@xxx.cc.zz:8080
npm config set https-proxy http://user:password@xxx.cc.zz:8080

Open in new window

0
Frank DannyAuthor Commented:
@leakin971....Unfornately I don't  have the password. I  think I need  to raise this with  System  Admin and see what they can do. What is your opinion on this? If I don't have a password and proxy  doesn't accept  annonymous
0
leakim971PluritechnicianCommented:
I'm agree with you, just ask him to create a dedicated user for you. depending the proxy it can limit time and target domains.
or go to old way, manual install by downloading with browser... lot of work for nothing...
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Frank DannyAuthor Commented:
They let me use their  internal  registry  which is  fine.It works  well,.....so basically I have to configure  ,npmrc  file  to work  with their  internal  repo.Thank  you again@Leakim971
1
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Node.js

From novice to tech pro — start learning today.