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.

could you confirm this proxy allow anonymous access ?
Frank DannyAuthor Commented:
Thank you @leakim971.How can I confirm that?
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
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

did you try my last suggestion?
Frank DannyAuthor Commented:
@leakim971..Thank you again for your help..The proxy doesn't allow  anonymous access.
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

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
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...

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
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

From novice to tech pro — start learning today.