npm / cli

the package manager for JavaScript
https://docs.npmjs.com/cli/
Other
8.49k stars 3.17k forks source link

[BUG] Unable to call audit on pipeline #1306

Closed dixiedream closed 3 years ago

dixiedream commented 4 years ago

What / Why

My jenkins instance is unable to call npm audit within a Docker image, i'm getting a connection error to the audit section of the npm repo. I cannot build anything as my image relying on this feature.

When

How

Current Behavior

npm ERR! audit Your configured registry (https://registry.npmjs.org/) may not support audit requests, or the audit endpoint may be temporarily unavailable.
npm ERR! audit The server said: <!DOCTYPE html>
npm ERR! audit <!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en-US"> <![endif]-->
npm ERR! audit <!--[if IE 7]>    <html class="no-js ie7 oldie" lang="en-US"> <![endif]-->
npm ERR! audit <!--[if IE 8]>    <html class="no-js ie8 oldie" lang="en-US"> <![endif]-->
npm ERR! audit <!--[if gt IE 8]><!--> <html class="no-js" lang="en-US"> <!--<![endif]-->
npm ERR! audit <head>
npm ERR! audit <title>Attention Required! | Cloudflare</title>
npm ERR! audit <meta name="captcha-bypass" id="captcha-bypass" />
npm ERR! audit <meta charset="UTF-8" />
npm ERR! audit <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
npm ERR! audit <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" />
npm ERR! audit <meta name="robots" content="noindex, nofollow" />
npm ERR! audit <meta name="viewport" content="width=device-width,initial-scale=1" />
npm ERR! audit <link rel="stylesheet" id="cf_styles-css" href="/cdn-cgi/styles/cf.errors.css" type="text/css" media="screen,projection" />
npm ERR! audit <!--[if lt IE 9]><link rel="stylesheet" id='cf_styles-ie-css' href="/cdn-cgi/styles/cf.errors.ie.css" type="text/css" media="screen,projection" /><![endif]-->
npm ERR! audit <style type="text/css">body{margin:0;padding:0}</style>
npm ERR! audit 
npm ERR! audit 
npm ERR! audit <!--[if gte IE 10]><!--><script type="text/javascript" src="/cdn-cgi/scripts/zepto.min.js"></script><!--<![endif]-->
npm ERR! audit <!--[if gte IE 10]><!--><script type="text/javascript" src="/cdn-cgi/scripts/cf.common.js"></script><!--<![endif]-->
npm ERR! audit 
npm ERR! audit 
npm ERR! audit 
npm ERR! audit 
npm ERR! audit </head>
npm ERR! audit <body>
npm ERR! audit   <div id="cf-wrapper">
npm ERR! audit     <div class="cf-alert cf-alert-error cf-cookie-error" id="cookie-alert" data-translate="enable_cookies">Please enable cookies.</div>
npm ERR! audit     <div id="cf-error-details" class="cf-error-details-wrapper">
npm ERR! audit       <div class="cf-wrapper cf-header cf-error-overview">
npm ERR! audit         <h1 data-translate="challenge_headline">One more step</h1>
npm ERR! audit         <h2 class="cf-subheadline"><span data-translate="complete_sec_check">Please complete the security check to access</span> prod-frontdoor-lb-west.internal.npmjs.com</h2>
npm ERR! audit       </div><!-- /.header -->
npm ERR! audit       
npm ERR! audit       <div class="cf-section cf-highlight cf-captcha-container">
npm ERR! audit         <div class="cf-wrapper">
npm ERR! audit           <div class="cf-columns two">
npm ERR! audit             <div class="cf-column">
npm ERR! audit             
npm ERR! audit               <div class="cf-highlight-inverse cf-form-stacked">
npm ERR! audit                 <form class="challenge-form" id="challenge-form" action="/-/npm/v1/security/audits?__cf_chl_captcha_tk__=9538bab54951f5c409660be2d0e0c7501a5460c3-1589556098-0-Aem3Z0bVxtJsZNG9aUKvO_SYiaQqmRergGBhLCyzRG0F7JR6ahuahyrc7orYAFawUs11uBmlAASvdzPbMfDcUxVqHpRV-g7sfdSRKcM2107ErtFNrnDQmba08AL_jSuNGbYyG27_RPpGigE3-cBIFuiw7q08NAttfX-Q5u8EOye6nbxNQXLq__gIZRqI9ZATSXlXhGb3orvZjxcSl0wlKOcY01cKF7e6lGYKAthV1PVWtfk2Vjz0oFOkcETrnSN9Rn-193dOiXDhJgbQb2F2KfLXwDvpjHJtST5GuqWeFGeTAff3VYHNp6E_2FpG8AcqrzGPkK7GMKOUayNnV8sMHmqvtEYbaqrDzedZhCmuzITrMLWqgSHeG3lQ7WdlkH0gjxxaJTG5dCn_XjsmFaO4DVOvJNZZ0DHUQJJE81TnkIpdieduGb2PL_ToWAD2x9wBxLkH3A1N1fe81EGTpe8EqYDxXUc8-3oEJv9IBlNn_cI7gPqZ1Dt7EmgVCxzHLR7HR1ChUNQKTRf3TH8YImd8Q-7qGnvgURXhyJYPv4ZZ9Kb65-yXgCCY3RF-HAaEyNae6-QEVcC4TMfC_h2M_TuGKIc" method="POST" enctype="application/x-www-form-urlencoded">
npm ERR! audit   <input type="hidden" name="r" value="CAPTCHAENCODEDSTUFF">
npm ERR! audit   <input type="hidden" name="cf_captcha_kind" value="h">
npm ERR! audit   <script type="text/javascript" src="/cdn-cgi/scripts/hcaptcha.challenge.js" data-type="normal"  data-ray="593dd990d68fedd3" async data-sitekey="33f96e6a-38cd-421b-bb68-7806e1764460"></script>
npm ERR! audit   <noscript id="cf-captcha-bookmark" class="cf-captcha-info">
npm ERR! audit   <h1 data-translate="turn_on_js" style="color:#bd2426;">Please turn JavaScript on and reload the page.</h1>
npm ERR! audit   </noscript>
npm ERR! audit   <div id="no-cookie-warning" data-translate="turn_on_cookies" style="display:none">
npm ERR! audit     <h1 data-translate="turn_on_cookies" style="color:#bd2426;">Please enable Cookies.</h1>
npm ERR! audit   </div>
npm ERR! audit   <script type="text/javascript">
npm ERR! audit   //<![CDATA[
npm ERR! audit     var a = function() {try{return !!window.addEventListener} catch(e) {return !1} },
npm ERR! audit       b = function(b, c) {a() ? document.addEventListener("DOMContentLoaded", b, c) : document.attachEvent("onreadystatechange", b)};
npm ERR! audit       b(function(){
npm ERR! audit         var cookiesEnabled=(navigator.cookieEnabled)? true : false;
npm ERR! audit         if(!cookiesEnabled){
npm ERR! audit           var q = document.getElementById('no-cookie-warning');q.style.display = 'block';
npm ERR! audit         });
npm ERR! audit   //]]>
npm ERR! audit   </script>
npm ERR! audit   <div id="trk_captcha_js" style="background-image:url('/cdn-cgi/images/trace/captcha/nojs/h/transparent.gif?ray=593dd990d68fedd3')"></div>
npm ERR! audit </form>
npm ERR! audit 
npm ERR! audit               </div>
npm ERR! audit             </div>
npm ERR! audit 
npm ERR! audit             <div class="cf-column">
npm ERR! audit               <div class="cf-screenshot-container">
npm ERR! audit               
npm ERR! audit                 <span class="cf-no-screenshot"></span>
npm ERR! audit               
npm ERR! audit               </div>
npm ERR! audit             </div>
npm ERR! audit           </div><!-- /.columns -->
npm ERR! audit         </div>
npm ERR! audit       </div><!-- /.captcha-container -->
npm ERR! audit 
npm ERR! audit       <div class="cf-section cf-wrapper">
npm ERR! audit         <div class="cf-columns two">
npm ERR! audit           <div class="cf-column">
npm ERR! audit             <h2 data-translate="why_captcha_headline">Why do I have to complete a CAPTCHA?</h2>
npm ERR! audit             
npm ERR! audit             <p data-translate="why_captcha_detail">Completing the CAPTCHA proves you are a human and gives you temporary access to the web property.</p>
npm ERR! audit           </div>
npm ERR! audit 
npm ERR! audit           <div class="cf-column">
npm ERR! audit             <h2 data-translate="resolve_captcha_headline">What can I do to prevent this in the future?</h2>
npm ERR! audit             
npm ERR! audit 
npm ERR! audit             <p data-translate="resolve_captcha_antivirus">If you are on a personal connection, like at home, you can run an anti-virus scan on your device to make sure it is not infected with malware.</p>
npm ERR! audit 
npm ERR! audit             <p data-translate="resolve_captcha_network">If you are at an office or shared network, you can ask the network administrator to run a scan across the network looking for misconfigured or infected devices.</p>
npm ERR! audit             
npm ERR! audit               
npm ERR! audit             
npm ERR! audit           </div>
npm ERR! audit         </div>
npm ERR! audit       </div><!-- /.section -->
npm ERR! audit       
npm ERR! audit 
npm ERR! audit       <div class="cf-error-footer cf-wrapper">
npm ERR! audit   <p>
npm ERR! audit     <span class="cf-footer-item">Cloudflare Ray ID: <strong>593dd990d68fedd3</strong></span>
npm ERR! audit     <span class="cf-footer-separator">&bull;</span>
npm ERR! audit     <span class="cf-footer-item"><span>Your IP</span>: 51.83.47.173</span>
npm ERR! audit     <span class="cf-footer-separator">&bull;</span>
npm ERR! audit     <span class="cf-footer-item"><span>Performance &amp; security by</span> <a href="https://www.cloudflare.com/5xx-error-landing?utm_source=error_footer" id="brand_link" target="_blank">Cloudflare</a></span>
npm ERR! audit     
npm ERR! audit   </p>
npm ERR! audit </div><!-- /.error-footer -->
npm ERR! audit 
npm ERR! audit 
npm ERR! audit     </div><!-- /#cf-error-details -->
npm ERR! audit   </div><!-- /#cf-wrapper -->
npm ERR! audit 
npm ERR! audit   <script type="text/javascript">
npm ERR! audit   window._cf_translation = {};
npm ERR! audit   
npm ERR! audit   
npm ERR! audit </script>
npm ERR! audit 
npm ERR! audit 
npm ERR! audit </body>
npm ERR! audit </html>
npm ERR! audit 
darcyclarke commented 3 years ago

npm v6 is no longer in active development; We will continue to push security releases to v6 at our team's discretion as-per our Support Policy.

If your bug is reproducible on v7, please re-file this issue using our new issue template.

If your issue was a feature request, please consider opening a new RRFC or RFC. If your issue was a question or other idea that was not CLI-specific, consider opening a discussion on our feedback repo

Closing: This is an automated message.