Quantcast
Channel: npm forum - Topics tagged triaged
Viewing all articles
Browse latest Browse all 30

npm audit ENOAUDIT with private packages in npm > v6

$
0
0

@isathi wrote:

What I Wanted to Do

Run npm audit on a project.

What Happened Instead

The following error message:

npm ERR! code ENOAUDIT
npm ERR! audit Your configured registry (https://registry.npmjs.org/) does not support audit requests, or the audit endpoint is temporarily unavailable.

npm ERR! A complete log of this run can be found in:
npm ERR!     /[...]/.npm/_logs/2019-02-07T22_00_09_579Z-debug.log

The debug-log has the following error:

5 http fetch POST 400 https://registry.npmjs.org/-/npm/v1/security/audits 353ms

Reproduction Steps

  • Have an enterprise npm registry
  • Install a private package from said registry using npm > v6
  • run npm audit

Details

With the same package, from the same registry, npm audit runs as expected in npm v5.x.x.

I have tried the following:

  • delete package-lock, node_modules, npm cache, etc. then reinstall and run again. The same problem occurs.

Platform Info

$ npm --versions
{ npm: '6.7.0',
  ares: '1.14.0',
  cldr: '32.0.1',
  http_parser: '2.7.1',
  icu: '60.2',
  modules: '57',
  nghttp2: '1.30.0',
  node: '8.10.0',
  openssl: '1.0.2n',
  tz: '2017c',
  unicode: '10.0',
  uv: '1.18.0',
  v8: '6.2.414.50',
  zlib: '1.2.11' }
$ node -p process.platform
linux

Posts: 7

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 30

Trending Articles