Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

Authentication Required issue while installing Grunt - Unable to install grunt #7772

Closed
ArunkumarSM opened this issue Mar 27, 2015 · 5 comments
Assignees
Labels

Comments

@ArunkumarSM
Copy link

While installing grunt it throws some error like "You must be authenticated to access this URL".

PFB:

C:\Windows\System32>npm install -g grunt-cli
npm ERR! registry error parsing json
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program Files (
x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "grunt-cli"
npm ERR! node v0.12.1
npm ERR! npm  v2.5.1

npm ERR! Unexpected token <
npm ERR! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
npm ERR! <html>
npm ERR! <!-- FileName: index.html
npm ERR!      Language: [en]
npm ERR! -->
npm ERR! <!--Head-->
npm ERR! <head>
npm ERR!   <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
npm ERR!   <meta http-equiv="X-UA-Compatible" content="IE=7" />
npm ERR!   <title>McAfee Web Gateway - Notification</title>
npm ERR!   <script src="/mwg-internal/de5fs23hu73ds/files/javascript/sw.js" type
="text/javascript" ></script>
npm ERR!   <link rel="stylesheet" href="/mwg-internal/de5fs23hu73ds/files/defaul
t/stylesheet.css" />
npm ERR! </head>
npm ERR! <!--/Head-->
npm ERR! <!--Body-->
npm ERR! <body onload="swOnLoad();">
npm ERR!   <table class='bodyTable'>
npm ERR!     <tr>
npm ERR!       <td class='bodyData' background='/mwg-internal/de5fs23hu73ds/file
s/default/img/bg_body.gif'>
npm ERR! <!--Logo-->
npm ERR! <table class='logoTable'>
npm ERR!   <tr>
npm ERR!     <td class='logoData'>
npm ERR!         <img src='/mwg-internal/de5fs23hu73ds/files/default/img/kc30whi
te2.gif'>
npm ERR!         <br/>
npm ERR!         <i><b>This Page was not reached in error.</i></b>
npm ERR!     </td>
npm ERR!  <!--   <td class='logoDataTwo'>
npm ERR!         <img src='/mwg-internal/de5fs23hu73ds/files/default/img/logo_mw
g.png' align="right">
npm ERR!     </td>
npm ERR! -->
npm ERR!   </tr>
npm ERR! </table>
npm ERR! <!--/Logo-->
npm ERR! <!--Contents-->
npm ERR! <!-- FileName: authenticationrequired.html
npm ERR!      Language: [en]
npm ERR! -->
npm ERR! <!--Title-->
npm ERR! <table class='titleTable' background='/mwg-internal/de5fs23hu73ds/files
/default/img/bg_navbar.jpg'>
npm ERR!   <tr>
npm ERR!     <td class='titleData'>
npm ERR!       Authentication Required
npm ERR!     </td>
npm ERR!   </tr>
npm ERR! </table>
npm ERR! <!--/Title-->
npm ERR!
npm ERR! <!--Content-->
npm ERR! <table class="contentTable">
npm ERR!   <tr>
npm ERR!     <td class="contentData">
npm ERR! </br>
npm ERR!       You must be authenticated to access this URL.</br>
npm ERR!     </td>
npm ERR!   </tr>
npm ERR! </table>
npm ERR! <!--/Content-->
npm ERR!
npm ERR! <!--Info-->
npm ERR! <table class="infoTable">
npm ERR!   <tr>
npm ERR!     <td class="infoData">
npm ERR!       <b>URL: </b><script type="text/javascript">break_line("http://reg
istry.npmjs.org/grunt-cli");</script><br />
npm ERR!     </td>
npm ERR!   </tr>
npm ERR! </table>
npm ERR! <!--/Info-->
npm ERR!
npm ERR! <!--/Contents-->
npm ERR! <!--Policy-->
npm ERR! <table class='policyTable'>
npm ERR!   <tr>
npm ERR!     <td class='policyHeading'>
npm ERR! <br/>
npm ERR! <hr>
npm ERR!     </td>
npm ERR!   </tr>
npm ERR!   <tr>
npm ERR!     <td class='policyData'>
npm ERR!       </td>
npm ERR!   </tr>
npm ERR! </table>
npm ERR! <!--/Policy-->
npm ERR! <!--Foot-->
npm ERR! <table class='footTable'>
npm ERR!   <tr>
npm ERR!   <td class='TheDeskHeading'>
npm ERR!    <p> For additional assistance, please review </p>
npm ERR!     <a href="http://sites.kcc.com/teams/ComputerSecurity/CSIRT/Incident
%20Information%20Wiki/Internet%20Acceptable%20Use%20Policy.aspx" target="_blank"
>Kimberly-Clark's Acceptable Use Policy on the Internet</a><br/>
npm ERR! or <br/>
npm ERR! contact
npm ERR! <a href="http://www.kcc.com/mis/cafe/knowbank/helpdeskphones.asp" targe
t="_blank">  TheDESK </a>
npm ERR! (formerly Global IT Service Desk)
npm ERR!  </p>
npm ERR!  </td>
npm ERR!   </tr>
npm ERR!   <tr>
npm ERR!     <td class='footData'>
npm ERR!       generated <span id="time">2015-03-27 06:15:25</span> by McAfee We
b Gateway ustcap41
npm ERR!       <br />
npm ERR!       npm/2.5.1 node/v0.12.1 win32 ia32
npm ERR!     </td>
npm ERR!   </tr>
npm ERR! </table>
npm ERR! <!--/Foot-->
npm ERR!       </td>
npm ERR!     </tr>
npm ERR!   </table>
npm ERR! <table class='hidden'>
npm ERR! <tr><td>Client IP:</td><td>165.28.130.210</td>
npm ERR! <tr><td>Auth User:</td><td></td>
npm ERR! <tr><td>URL Dest IP:</td><td>23.235.40.162</td>
npm ERR! <tr><td>URL Category:</td><td></td>
npm ERR! <tr><td>Proxy IP:</td><td>172.16.21.41</td>
npm ERR! </table>
npm ERR! </p>
npm ERR! </body>
npm ERR! <!--/Body-->
npm ERR! </html>
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Windows\System32\npm-debug.log
@louisremi
Copy link

This is a problem with your enterprise proxy, as suggested by the line:
For additional assistance, please review Kimberly-Clark's Acceptable Use Policy on the Internet

@smikes
Copy link
Contributor

smikes commented Mar 29, 2015

You need to tell npm how to access files through your proxy; something like:

npm config set http_proxy http://user@proxy.host.com

Your IT staff may be able to help.

@iarna iarna added the support label Apr 11, 2015
@ehsalazar ehsalazar self-assigned this Aug 12, 2015
@ehsalazar
Copy link

We haven’t heard back and we’re trying to clean up some old issues.  If this is still a problem, can you please reply and let us know?  We’ll be happy to reopen if necessary.

@nishachopra1012
Copy link

Hi ,

This is still an issue . Please suggest .

@alfonsomartinde
Copy link

I'm facing the same problem. I think it's related with McAfee Web Gateway. I found an unanswered question in Stack Overflow about the same http://stackoverflow.com/questions/32463190/nodejs-behind-mcafee-web-gateway-in-direct-proxy-mode-not-transparent

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

7 participants