npm / cli

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

[BUG] npm audit fails with 404 error #4382

Open robertpatrick opened 2 years ago

robertpatrick commented 2 years ago

Is there an existing issue for this?

This issue exists in the latest npm version

Current Behavior

Running npm audit fails with a 404 error

% npm audit
npm WARN audit 404 Not Found - POST https://registry.npmjs.org/-/npm/v1/security/audits/quick
null
npm ERR! audit endpoint returned an error
%

Expected Behavior

I expect npm audit to work.

Steps To Reproduce

  1. Go to any existing project
  2. Run npm audit
  3. See error

Environment

nlf commented 2 years ago

can you run it again like: npm audit --loglevel=silly and provide the output here? something else is failing along the way and i'm not quite sure what without more logs.

robertpatrick commented 2 years ago

@nlf Not sure what happened but when I went to run the command again just now, it is working. Didn't change anything so maybe there was a temporary issue with the registry endpoint?

% npm audit --loglevel=silly
npm verb cli [
npm verb cli   '/usr/local/bin/node',
npm verb cli   '/usr/local/bin/npm',
npm verb cli   'audit',
npm verb cli   '--loglevel=silly'
npm verb cli ]
npm info using npm@8.4.1
npm info using node@v16.13.0
npm timing npm:load:whichnode Completed in 0ms
npm timing config:load:defaults Completed in 1ms
npm timing config:load:file:/usr/local/lib/node_modules/npm/npmrc Completed in 1ms
npm timing config:load:builtin Completed in 1ms
npm timing config:load:cli Completed in 2ms
npm timing config:load:env Completed in 0ms
npm timing config:load:file:/Users/rpatrick/Projects/weblogic-toolkit-ui/electron/.npmrc Completed in 0ms
npm timing config:load:project Completed in 1ms
npm timing config:load:file:/Users/rpatrick/.npmrc Completed in 0ms
npm timing config:load:user Completed in 0ms
npm timing config:load:file:/usr/local/etc/npmrc Completed in 0ms
npm timing config:load:global Completed in 0ms
npm timing config:load:validate Completed in 0ms
npm timing config:load:credentials Completed in 1ms
npm timing config:load:setEnvs Completed in 1ms
npm timing config:load Completed in 7ms
npm timing npm:load:configload Completed in 7ms
npm timing npm:load:setTitle Completed in 11ms
npm timing config:load:flatten Completed in 2ms
npm timing npm:load:display Completed in 5ms
npm verb logfile /Users/rpatrick/.npm/_logs/2022-02-07T18_23_29_276Z-debug-0.log
npm timing npm:load:logFile Completed in 4ms
npm timing npm:load:timers Completed in 0ms
npm timing npm:load:configScope Completed in 0ms
npm timing npm:load Completed in 28ms
npm timing arborist:ctor Completed in 1ms
npm sill logfile start cleaning logs, removing 1 files
npm sill audit bulk request {
npm sill audit   '@babel/runtime': [ '7.16.3' ],
npm sill audit   '@dabh/diagnostics': [ '2.0.2' ],
npm sill audit   '@develar/schema-utils': [ '2.6.5' ],
npm sill audit   '@electron/get': [ '1.13.1' ],
npm sill audit   '@electron/universal': [ '1.0.5' ],
npm sill audit   'fs-extra': [ '9.1.0', '10.0.0', '8.1.0' ],
npm sill audit   jsonfile: [ '6.1.0', '4.0.0' ],
npm sill audit   universalify: [ '2.0.0', '0.1.2' ],
npm sill audit   '@eslint/eslintrc': [ '1.0.5' ],
npm sill audit   '@humanwhocodes/config-array': [ '0.9.2' ],
npm sill audit   '@humanwhocodes/object-schema': [ '1.2.1' ],
npm sill audit   '@malept/cross-spawn-promise': [ '1.1.1' ],
npm sill audit   '@malept/flatpak-bundler': [ '0.4.0' ],
npm sill audit   '@sindresorhus/is': [ '0.14.0' ],
npm sill audit   '@szmarczak/http-timer': [ '1.1.2' ],
npm sill audit   '@tootallnate/once': [ '2.0.0' ],
npm sill audit   '@types/debug': [ '4.1.7' ],
npm sill audit   '@types/fs-extra': [ '9.0.13' ],
npm sill audit   '@types/glob': [ '7.2.0' ],
npm sill audit   '@types/minimatch': [ '3.0.5' ],
npm sill audit   '@types/ms': [ '0.7.31' ],
npm sill audit   '@types/node': [ '14.17.34' ],
npm sill audit   '@types/plist': [ '3.0.2' ],
npm sill audit   '@types/semver': [ '7.3.9' ],
npm sill audit   '@types/verror': [ '1.10.5' ],
npm sill audit   '@types/yargs': [ '17.0.7' ],
npm sill audit   '@types/yargs-parser': [ '20.2.1' ],
npm sill audit   '@types/yauzl': [ '2.9.2' ],
npm sill audit   '@ungap/promise-all-settled': [ '1.1.2' ],
npm sill audit   '7zip-bin': [ '5.1.1' ],
npm sill audit   acorn: [ '8.6.0' ],
npm sill audit   'acorn-jsx': [ '5.3.2' ],
npm sill audit   'agent-base': [ '6.0.2' ],
npm sill audit   ajv: [ '6.12.6' ],
npm sill audit   'ajv-keywords': [ '3.5.2' ],
npm sill audit   'ansi-align': [ '3.0.1' ],
npm sill audit   'ansi-colors': [ '4.1.1' ],
npm sill audit   'ansi-regex': [ '5.0.1', '2.1.1' ],
npm sill audit   'ansi-styles': [ '4.3.0', '3.2.1' ],
npm sill audit   anymatch: [ '3.1.2' ],
npm sill audit   'app-builder-bin': [ '3.7.1' ],
npm sill audit   'app-builder-lib': [ '22.14.12' ],
npm sill audit   semver: [ '7.3.5', '5.7.1', '6.3.0' ],
npm sill audit   aproba: [ '1.2.0' ],
npm sill audit   'are-we-there-yet': [ '1.1.7' ],
npm sill audit   argparse: [ '2.0.1' ],
npm sill audit   asar: [ '3.1.0' ],
npm sill audit   'assert-plus': [ '1.0.0' ],
npm sill audit   'assertion-error': [ '1.1.0' ],
npm sill audit   'astral-regex': [ '2.0.0' ],
npm sill audit   async: [ '0.9.2', '3.2.2' ],
npm sill audit   'async-exit-hook': [ '2.0.1' ],
npm sill audit   asynckit: [ '0.4.0' ],
npm sill audit   'at-least-node': [ '1.0.0' ],
npm sill audit   'balanced-match': [ '1.0.2' ],
npm sill audit   'base64-js': [ '1.5.1' ],
npm sill audit   'binary-extensions': [ '2.2.0' ],
npm sill audit   bl: [ '4.1.0' ],
npm sill audit   'readable-stream': [ '3.6.0', '2.3.7' ],
npm sill audit   bluebird: [ '3.7.2' ],
npm sill audit   'bluebird-lst': [ '1.0.9' ],
npm sill audit   boolean: [ '3.1.4' ],
npm sill audit   boxen: [ '5.1.2' ],
npm sill audit   'brace-expansion': [ '1.1.11' ],
npm sill audit   braces: [ '3.0.2' ],
npm sill audit   'browser-stdout': [ '1.3.1' ],
npm sill audit   'browserify-zlib': [ '0.1.4' ],
npm sill audit   buffer: [ '5.7.1' ],
npm sill audit   'buffer-alloc': [ '1.2.0' ],
npm sill audit   'buffer-alloc-unsafe': [ '1.1.0' ],
npm sill audit   'buffer-crc32': [ '0.2.13' ],
npm sill audit   'buffer-equal': [ '1.0.0' ],
npm sill audit   'buffer-fill': [ '1.0.0' ],
npm sill audit   'buffer-from': [ '1.1.2' ],
npm sill audit   'builder-util': [ '22.14.7' ],
npm sill audit   'builder-util-runtime': [ '8.9.2' ],
npm sill audit   'cacheable-request': [ '6.1.0' ],
npm sill audit   'lowercase-keys': [ '2.0.0', '1.0.1' ],
npm sill audit   callsites: [ '3.1.0' ],
npm sill audit   camelcase: [ '6.2.1' ],
npm sill audit   chai: [ '4.3.4' ],
npm sill audit   'chai-as-promised': [ '7.1.1' ],
npm sill audit   chalk: [ '4.1.2', '2.4.2' ],
npm sill audit   'check-error': [ '1.0.2' ],
npm sill audit   chokidar: [ '3.5.3' ],
npm sill audit   'glob-parent': [ '5.1.2', '6.0.2' ],
npm sill audit   chownr: [ '2.0.0', '1.1.4' ],
npm sill audit   'chromium-pickle-js': [ '0.2.0' ],
npm sill audit   'ci-info': [ '3.3.0', '2.0.0' ],
npm sill audit   'cli-boxes': [ '2.2.1' ],
npm sill audit   'cli-truncate': [ '2.1.0' ],
npm sill audit   cliui: [ '7.0.4' ],
npm sill audit   'clone-response': [ '1.0.2' ],
npm sill audit   'code-point-at': [ '1.1.0' ],
npm sill audit   color: [ '3.2.1' ],
npm sill audit   'color-convert': [ '2.0.1', '1.9.3' ],
npm sill audit   'color-name': [ '1.1.4', '1.1.3' ],
npm sill audit   'color-string': [ '1.8.2' ],
npm sill audit   colors: [ '1.0.3', '1.4.0' ],
npm sill audit   colorspace: [ '1.1.4' ],
npm sill audit   'combined-stream': [ '1.0.8' ],
npm sill audit   commander: [ '5.1.0', '2.9.0' ],
npm sill audit   'compare-version': [ '0.1.2' ],
npm sill audit   'concat-map': [ '0.0.1' ],
npm sill audit   'concat-stream': [ '1.6.2' ],
npm sill audit   'config-chain': [ '1.1.13' ],
npm sill audit   configstore: [ '5.0.1' ],
npm sill audit   'console-control-strings': [ '1.1.0' ],
npm sill audit   'core-util-is': [ '1.0.3', '1.0.2' ],
npm sill audit   crc: [ '3.8.0' ],
npm sill audit   'cross-spawn': [ '7.0.3' ],
npm sill audit   'crypto-random-string': [ '2.0.0' ],
npm sill audit   debug: [ '4.3.3', '2.6.9' ],
npm sill audit   decamelize: [ '4.0.0' ],
npm sill audit   'decompress-response': [ '3.3.0', '4.2.1' ],
npm sill audit   'deep-eql': [ '3.0.1' ],
npm sill audit   'deep-extend': [ '0.6.0' ],
npm sill audit   'deep-is': [ '0.1.4' ],
npm sill audit   'defer-to-connect': [ '1.1.3' ],
npm sill audit   'define-properties': [ '1.1.3' ],
npm sill audit   'delayed-stream': [ '1.0.0' ],
npm sill audit   delegates: [ '1.0.0' ],
npm sill audit   'detect-libc': [ '1.0.3' ],
npm sill audit   'detect-node': [ '2.1.0' ],
npm sill audit   diff: [ '5.0.0' ],
npm sill audit   'dir-compare': [ '2.4.0' ],
npm sill audit   'dmg-builder': [ '22.14.12' ],
npm sill audit   'dmg-license': [ '1.0.10' ],
npm sill audit   doctrine: [ '3.0.0' ],
npm sill audit   'dot-prop': [ '5.3.0' ],
npm sill audit   dotenv: [ '9.0.2' ],
npm sill audit   'dotenv-expand': [ '5.1.0' ],
npm sill audit   duplexer3: [ '0.1.4' ],
npm sill audit   duplexify: [ '3.7.1' ],
npm sill audit   ejs: [ '3.1.6' ],
npm sill audit   electron: [ '16.0.8' ],
npm sill audit   'electron-builder': [ '22.14.12' ],
npm sill audit   'electron-notarize': [ '1.1.1' ],
npm sill audit   'electron-osx-sign': [ '0.5.0' ],
npm sill audit   isbinaryfile: [ '3.0.3', '4.0.8' ],
npm sill audit   ms: [ '2.0.0', '2.1.3', '2.1.2' ],
npm sill audit   'electron-publish': [ '22.14.12' ],
npm sill audit   'electron-updater': [ '4.6.5' ],
npm sill audit   'extract-zip': [ '1.7.0', '2.0.1' ],
npm sill audit   mkdirp: [ '0.5.5', '1.0.4' ],
npm sill audit   'emoji-regex': [ '8.0.0' ],
npm sill audit   enabled: [ '2.0.0' ],
npm sill audit   encodeurl: [ '1.0.2' ],
npm sill audit   'end-of-stream': [ '1.4.4' ],
npm sill audit   enquirer: [ '2.3.6' ],
npm sill audit   'env-paths': [ '2.2.1' ],
npm sill audit   'es6-error': [ '4.1.1' ],
npm sill audit   escalade: [ '3.1.1' ],
npm sill audit   'escape-goat': [ '2.1.1' ],
npm sill audit   'escape-string-regexp': [ '4.0.0', '1.0.5' ],
npm sill audit   eslint: [ '8.5.0' ],
npm sill audit   'eslint-scope': [ '7.1.0' ],
npm sill audit   'eslint-utils': [ '3.0.0' ],
npm sill audit   'eslint-visitor-keys': [ '2.1.0', '3.1.0' ],
npm sill audit   espree: [ '9.2.0' ],
npm sill audit   esquery: [ '1.4.0' ],
npm sill audit   esrecurse: [ '4.3.0' ],
npm sill audit   estraverse: [ '5.3.0' ],
npm sill audit   esutils: [ '2.0.3' ],
npm sill audit   'expand-template': [ '2.0.3' ],
npm sill audit   extsprintf: [ '1.4.1' ],
npm sill audit   'fast-deep-equal': [ '3.1.3' ],
npm sill audit   'fast-json-stable-stringify': [ '2.1.0' ],
npm sill audit   'fast-levenshtein': [ '2.0.6' ],
npm sill audit   'fd-slicer': [ '1.1.0' ],
npm sill audit   fecha: [ '4.2.1' ],
npm sill audit   'file-entry-cache': [ '6.0.1' ],
npm sill audit   'file-stream-rotator': [ '0.5.7' ],
npm sill audit   filelist: [ '1.0.2' ],
npm sill audit   'fill-keys': [ '1.0.2' ],
npm sill audit   'fill-range': [ '7.0.1' ],
npm sill audit   'find-up': [ '5.0.0' ],
npm sill audit   flat: [ '5.0.2' ],
npm sill audit   'flat-cache': [ '3.0.4' ],
npm sill audit   flatted: [ '3.2.4' ],
npm sill audit   'fn.name': [ '1.1.0' ],
npm sill audit   'form-data': [ '4.0.0' ],
npm sill audit   'fs-constants': [ '1.0.0' ],
npm sill audit   'fs-minipass': [ '2.1.0' ],
npm sill audit   'fs.realpath': [ '1.0.0' ],
npm sill audit   fsevents: [ '2.3.2' ],
npm sill audit   'function-bind': [ '1.1.1' ],
npm sill audit   'functional-red-black-tree': [ '1.0.1' ],
npm sill audit   gauge: [ '2.7.4' ],
npm sill audit   'is-fullwidth-code-point': [ '1.0.0', '3.0.0' ],
npm sill audit   'string-width': [ '1.0.2', '4.2.3' ],
npm sill audit   'strip-ansi': [ '3.0.1', '6.0.1' ],
npm sill audit   'get-caller-file': [ '2.0.5' ],
npm sill audit   'get-func-name': [ '2.0.0' ],
npm sill audit   'get-stream': [ '5.2.0', '4.1.0' ],
npm sill audit   'github-from-package': [ '0.0.0' ],
npm sill audit   glob: [ '7.2.0' ],
npm sill audit   'global-agent': [ '3.0.0' ],
npm sill audit   'global-dirs': [ '3.0.0' ],
npm sill audit   ini: [ '2.0.0', '1.3.8' ],
npm sill audit   'global-tunnel-ng': [ '2.7.1' ],
npm sill audit   globals: [ '13.12.0' ],
npm sill audit   globalthis: [ '1.0.2' ],
npm sill audit   got: [ '9.6.0' ],
npm sill audit   'graceful-fs': [ '4.2.8' ],
npm sill audit   'graceful-readlink': [ '1.0.1' ],
npm sill audit   growl: [ '1.10.5' ],
npm sill audit   'gunzip-maybe': [ '1.4.2' ],
npm sill audit   has: [ '1.0.3' ],
npm sill audit   'has-flag': [ '4.0.0', '3.0.0' ],
npm sill audit   'has-unicode': [ '2.0.1' ],
npm sill audit   'has-yarn': [ '2.1.0' ],
npm sill audit   he: [ '1.2.0' ],
npm sill audit   'hosted-git-info': [ '4.0.2' ],
npm sill audit   'http-cache-semantics': [ '4.1.0' ],
npm sill audit   'http-proxy-agent': [ '5.0.0' ],
npm sill audit   'https-proxy-agent': [ '5.0.0' ],
npm sill audit   i18next: [ '21.6.3' ],
npm sill audit   'i18next-fs-backend': [ '1.1.4' ],
npm sill audit   'iconv-corefoundation': [ '1.1.7' ],
npm sill audit   'iconv-lite': [ '0.6.3' ],
npm sill audit   ieee754: [ '1.2.1' ],
npm sill audit   ignore: [ '4.0.6' ],
npm sill audit   immediate: [ '3.0.6' ],
npm sill audit   'import-fresh': [ '3.3.0' ],
npm sill audit   'import-lazy': [ '2.1.0' ],
npm sill audit   imurmurhash: [ '0.1.4' ],
npm sill audit   inflight: [ '1.0.6' ],
npm sill audit   inherits: [ '2.0.4' ],
npm sill audit   'is-arrayish': [ '0.3.2' ],
npm sill audit   'is-binary-path': [ '2.1.0' ],
npm sill audit   'is-ci': [ '3.0.1', '2.0.0' ],
npm sill audit   'is-core-module': [ '2.8.0' ],
npm sill audit   'is-deflate': [ '1.0.0' ],
npm sill audit   'is-extglob': [ '2.1.1' ],
npm sill audit   'is-glob': [ '4.0.3' ],
npm sill audit   'is-gzip': [ '1.0.0' ],
npm sill audit   'is-installed-globally': [ '0.4.0' ],
npm sill audit   'is-npm': [ '5.0.0' ],
npm sill audit   'is-number': [ '7.0.0' ],
npm sill audit   'is-obj': [ '2.0.0' ],
npm sill audit   'is-object': [ '1.0.2' ],
npm sill audit   'is-path-inside': [ '3.0.3' ],
npm sill audit   'is-plain-obj': [ '2.1.0' ],
npm sill audit   'is-stream': [ '2.0.1' ],
npm sill audit   'is-typedarray': [ '1.0.0' ],
npm sill audit   'is-unicode-supported': [ '0.1.0' ],
npm sill audit   'is-yarn-global': [ '0.3.0' ],
npm sill audit   isarray: [ '1.0.0' ],
npm sill audit   isexe: [ '2.0.0' ],
npm sill audit   jake: [ '10.8.2' ],
npm sill audit   'supports-color': [ '5.5.0', '8.1.1', '7.2.0' ],
npm sill audit   'js-yaml': [ '4.1.0' ],
npm sill audit   'json-buffer': [ '3.0.0' ],
npm sill audit   'json-schema-traverse': [ '0.4.1' ],
npm sill audit   'json-stable-stringify-without-jsonify': [ '1.0.1' ],
npm sill audit   'json-stringify-safe': [ '5.0.1' ],
npm sill audit   json5: [ '2.2.0' ],
npm sill audit   jszip: [ '3.7.1' ],
npm sill audit   pako: [ '1.0.11', '0.2.9' ],
npm sill audit   keytar: [ '7.7.0' ],
npm sill audit   'node-addon-api': [ '3.2.1', '1.7.2' ],
npm sill audit   keyv: [ '3.1.0' ],
npm sill audit   kuler: [ '2.0.0' ],
npm sill audit   'latest-version': [ '5.1.0' ],
npm sill audit   'lazy-val': [ '1.0.5' ],
npm sill audit   levn: [ '0.4.1' ],
npm sill audit   lie: [ '3.3.0' ],
npm sill audit   'locate-path': [ '6.0.0' ],
npm sill audit   lodash: [ '4.17.21' ],
npm sill audit   'lodash.escaperegexp': [ '4.1.2' ],
npm sill audit   'lodash.isequal': [ '4.5.0' ],
npm sill audit   'lodash.merge': [ '4.6.2' ],
npm sill audit   'log-symbols': [ '4.1.0' ],
npm sill audit   logform: [ '2.3.0' ],
npm sill audit   'lru-cache': [ '6.0.0' ],
npm sill audit   'make-dir': [ '3.1.0' ],
npm sill audit   matcher: [ '3.0.0' ],
npm sill audit   'merge-descriptors': [ '1.0.1' ],
npm sill audit   mime: [ '2.6.0' ],
npm sill audit   'mime-db': [ '1.51.0' ],
npm sill audit   'mime-types': [ '2.1.34' ],
npm sill audit   'mimic-response': [ '1.0.1', '2.1.0' ],
npm sill audit   minimatch: [ '3.0.4' ],
npm sill audit   minimist: [ '1.2.5' ],
npm sill audit   minipass: [ '3.1.5' ],
npm sill audit   minizlib: [ '2.1.2' ],
npm sill audit   'mkdirp-classic': [ '0.5.3' ],
npm sill audit   mocha: [ '9.2.0' ],
npm sill audit   yargs: [ '16.2.0', '17.3.0' ],
npm sill audit   'module-not-found-error': [ '1.0.1' ],
npm sill audit   moment: [ '2.29.1' ],
npm sill audit   nanoid: [ '3.2.0' ],
npm sill audit   'napi-build-utils': [ '1.0.2' ],
npm sill audit   'natural-compare': [ '1.4.0' ],
npm sill audit   'node-abi': [ '2.30.1' ],
npm sill audit   'node-fetch': [ '2.6.7' ],
npm sill audit   'normalize-path': [ '3.0.0' ],
npm sill audit   'normalize-url': [ '4.5.1' ],
npm sill audit   'npm-conf': [ '1.1.3' ],
npm sill audit   npmlog: [ '4.1.2' ],
npm sill audit   'number-is-nan': [ '1.0.1' ],
npm sill audit   'object-assign': [ '4.1.1' ],
npm sill audit   'object-hash': [ '2.2.0' ],
npm sill audit   'object-keys': [ '1.1.1' ],
npm sill audit   once: [ '1.4.0' ],
npm sill audit   'one-time': [ '1.0.0' ],
npm sill audit   optionator: [ '0.9.1' ],
npm sill audit   'p-cancelable': [ '1.1.0' ],
npm sill audit   'p-limit': [ '3.1.0' ],
npm sill audit   'p-locate': [ '5.0.0' ],
npm sill audit   'package-json': [ '6.5.0' ],
npm sill audit   'parent-module': [ '1.0.1' ],
npm sill audit   'path-exists': [ '4.0.0' ],
npm sill audit   'path-is-absolute': [ '1.0.1' ],
npm sill audit   'path-key': [ '3.1.1' ],
npm sill audit   'path-parse': [ '1.0.7' ],
npm sill audit   pathval: [ '1.1.1' ],
npm sill audit   'peek-stream': [ '1.1.3' ],
npm sill audit   pend: [ '1.2.0' ],
npm sill audit   picomatch: [ '2.3.1' ],
npm sill audit   pify: [ '3.0.0' ],
npm sill audit   plist: [ '3.0.4' ],
npm sill audit   xmlbuilder: [ '9.0.7', '15.1.1' ],
npm sill audit   'prebuild-install': [ '6.1.4' ],
npm sill audit   'prelude-ls': [ '1.2.1' ],
npm sill audit   'prepend-http': [ '2.0.0' ],
npm sill audit   'process-nextick-args': [ '2.0.1' ],
npm sill audit   progress: [ '2.0.3' ],
npm sill audit   'proto-list': [ '1.2.4' ],
npm sill audit   proxyquire: [ '2.1.3' ],
npm sill audit   pump: [ '3.0.0', '2.0.1' ],
npm sill audit   pumpify: [ '1.5.1' ],
npm sill audit   punycode: [ '2.1.1' ],
npm sill audit   pupa: [ '2.1.1' ],
npm sill audit   randombytes: [ '2.1.0' ],
npm sill audit   rc: [ '1.2.8' ],
npm sill audit   'strip-json-comments': [ '2.0.1', '3.1.1' ],
npm sill audit   'read-config-file': [ '6.2.0' ],
npm sill audit   readdirp: [ '3.6.0' ],
npm sill audit   'regenerator-runtime': [ '0.13.9' ],
npm sill audit   regexpp: [ '3.2.0' ],
npm sill audit   'registry-auth-token': [ '4.2.1' ],
npm sill audit   'registry-url': [ '5.1.0' ],
npm sill audit   'require-directory': [ '2.1.1' ],
npm sill audit   resolve: [ '1.20.0' ],
npm sill audit   'resolve-from': [ '4.0.0' ],
npm sill audit   responselike: [ '1.0.2' ],
npm sill audit   rimraf: [ '3.0.2' ],
npm sill audit   roarr: [ '2.15.4' ],
npm sill audit   'safe-buffer': [ '5.1.2' ],
npm sill audit   'safe-stable-stringify': [ '1.1.1' ],
npm sill audit   'safer-buffer': [ '2.1.2' ],
npm sill audit   'sanitize-filename': [ '1.6.3' ],
npm sill audit   sax: [ '1.2.4' ],
npm sill audit   'semver-compare': [ '1.0.0' ],
npm sill audit   'semver-diff': [ '3.1.1' ],
npm sill audit   'serialize-error': [ '7.0.1' ],
npm sill audit   'type-fest': [ '0.13.1', '0.20.2' ],
npm sill audit   'serialize-javascript': [ '6.0.0' ],
npm sill audit   'set-blocking': [ '2.0.0' ],
npm sill audit   'set-immediate-shim': [ '1.0.1' ],
npm sill audit   'shebang-command': [ '2.0.0' ],
npm sill audit   'shebang-regex': [ '3.0.0' ],
npm sill audit   'signal-exit': [ '3.0.6' ],
npm sill audit   'simple-concat': [ '1.0.1' ],
npm sill audit   'simple-get': [ '3.1.1' ],
npm sill audit   'simple-swizzle': [ '0.2.2' ],
npm sill audit   'slice-ansi': [ '3.0.0' ],
npm sill audit   'smart-buffer': [ '4.2.0' ],
npm sill audit   'source-map': [ '0.6.1' ],
npm sill audit   'source-map-support': [ '0.5.21' ],
npm sill audit   'sprintf-js': [ '1.1.2' ],
npm sill audit   'stack-trace': [ '0.0.10' ],
npm sill audit   'stat-mode': [ '1.0.0' ],
npm sill audit   'stream-shift': [ '1.0.1' ],
npm sill audit   string_decoder: [ '1.1.1' ],
npm sill audit   sumchecker: [ '3.0.1' ],
npm sill audit   tar: [ '6.1.11' ],
npm sill audit   'tar-fs': [ '2.1.1' ],
npm sill audit   'tar-stream': [ '2.2.0' ],
npm sill audit   'temp-file': [ '3.4.0' ],
npm sill audit   'text-hex': [ '1.0.0' ],
npm sill audit   'text-table': [ '0.2.0' ],
npm sill audit   through2: [ '2.0.5' ],
npm sill audit   tmp: [ '0.2.1' ],
npm sill audit   'tmp-promise': [ '3.0.3' ],
npm sill audit   'to-readable-stream': [ '1.0.0' ],
npm sill audit   'to-regex-range': [ '5.0.1' ],
npm sill audit   tr46: [ '0.0.3' ],
npm sill audit   'triple-beam': [ '1.3.0' ],
npm sill audit   'truncate-utf8-bytes': [ '1.0.2' ],
npm sill audit   tunnel: [ '0.0.6' ],
npm sill audit   'tunnel-agent': [ '0.6.0' ],
npm sill audit   'type-check': [ '0.4.0' ],
npm sill audit   'type-detect': [ '4.0.8' ],
npm sill audit   typedarray: [ '0.0.6' ],
npm sill audit   'typedarray-to-buffer': [ '3.1.5' ],
npm sill audit   'unique-string': [ '2.0.0' ],
npm sill audit   'update-notifier': [ '5.1.0' ],
npm sill audit   'uri-js': [ '4.4.1' ],
npm sill audit   'url-parse-lax': [ '3.0.0' ],
npm sill audit   'utf8-byte-length': [ '1.0.4' ],
npm sill audit   'util-deprecate': [ '1.0.2' ],
npm sill audit   uuid: [ '8.3.2' ],
npm sill audit   'v8-compile-cache': [ '2.3.0' ],
npm sill audit   verror: [ '1.10.1' ],
npm sill audit   'webidl-conversions': [ '3.0.1' ],
npm sill audit   'whatwg-url': [ '5.0.0' ],
npm sill audit   which: [ '2.0.2' ],
npm sill audit   'wide-align': [ '1.1.5' ],
npm sill audit   'widest-line': [ '3.1.0' ],
npm sill audit   winston: [ '3.3.3' ],
npm sill audit   'winston-daily-rotate-file': [ '4.5.5' ],
npm sill audit   'winston-transport': [ '4.4.0' ],
npm sill audit   'word-wrap': [ '1.2.3' ],
npm sill audit   workerpool: [ '6.2.0' ],
npm sill audit   'wrap-ansi': [ '7.0.0' ],
npm sill audit   wrappy: [ '1.0.2' ],
npm sill audit   'write-file-atomic': [ '3.0.3' ],
npm sill audit   'xdg-basedir': [ '4.0.0' ],
npm sill audit   xtend: [ '4.0.2' ],
npm sill audit   y18n: [ '5.0.8' ],
npm sill audit   yallist: [ '4.0.0' ],
npm sill audit   'yargs-parser': [ '20.2.4', '21.0.0' ],
npm sill audit   'yargs-unparser': [ '2.0.0' ],
npm sill audit   yauzl: [ '2.10.0' ],
npm sill audit   'yocto-queue': [ '0.1.0' ]
npm sill audit }
npm http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/advisories/bulk 244ms
npm timing auditReport:getReport Completed in 260ms
npm sill audit report {}
npm timing auditReport:init Completed in 1ms
npm timing audit Completed in 444ms
found 0 vulnerabilities
npm timing command:audit Completed in 447ms
npm verb exit 0
npm timing npm Completed in 615ms
npm info ok 
% 
candy4290 commented 2 years ago

same question here! node:v16.14.0 npm:8.3.1

tjdznet commented 2 years ago

图片

RbBtSn0w commented 2 years ago

fail error

`

npm verb cli /opt/homebrew/Cellar/node/19.1.0/bin/node /opt/homebrew/bin/npm npm info using npm@8.19.3 npm info using node@v19.1.0 npm timing npm:load:whichnode Completed in 0ms npm timing config:load:defaults Completed in 0ms npm timing config:load:file:/opt/homebrew/lib/node_modules/npm/npmrc Completed in 2ms npm timing config:load:builtin Completed in 2ms npm timing config:load:cli Completed in 1ms npm timing config:load:env Completed in 1ms npm timing config:load:project Completed in 1ms npm timing config:load:file:/Users/yuanzhan/.npmrc Completed in 1ms npm timing config:load:user Completed in 1ms npm timing config:load:file:/opt/homebrew/etc/npmrc Completed in 0ms npm timing config:load:global Completed in 0ms npm timing config:load:validate Completed in 0ms npm timing config:load:credentials Completed in 1ms npm timing config:load:setEnvs Completed in 0ms npm timing config:load Completed in 7ms npm timing npm:load:configload Completed in 7ms npm timing npm:load:mkdirpcache Completed in 0ms npm timing npm:load:mkdirplogs Completed in 1ms npm verb title npm audit npm verb argv "audit" "--loglevel" "silly" npm timing npm:load:setTitle Completed in 2ms npm timing config:load:flatten Completed in 1ms npm timing npm:load:display Completed in 2ms npm verb logfile logs-max:10 dir:/Users/yuanzhan/.npm/_logs npm verb logfile /Users/yuanzhan/.npm/_logs/2022-11-16T09_08_01_457Z-debug-0.log npm timing npm:load:logFile Completed in 4ms npm timing npm:load:timers Completed in 0ms npm timing npm:load:configScope Completed in 0ms npm timing npm:load Completed in 16ms npm timing arborist:ctor Completed in 0ms npm sill logfile start cleaning logs, removing 1 files npm sill audit bulk request { heapdump: [ '0.3.15' ], nan: [ '2.17.0' ] } npm sill logfile done cleaning log files npm sill audit bulk request failed undefined npm verb audit error FetchError: request to https://registry.npmjs.org/-/npm/v1/security/audits/quick failed, reason: connect ETIMEDOUT 104.16.21.35:443 npm verb audit error at ClientRequest. (/opt/homebrew/lib/node_modules/npm/node_modules/minipass-fetch/lib/index.js:130:14) npm verb audit error at ClientRequest.emit (node:events:513:28) npm verb audit error at TLSSocket.socketErrorListener (node:_http_client:488:9) npm verb audit error at TLSSocket.emit (node:events:525:35) npm verb audit error at emitErrorNT (node:internal/streams/destroy:151:8) npm verb audit error at emitErrorCloseNT (node:internal/streams/destroy:116:3) npm verb audit error at process.processTicksAndRejections (node:internal/process/task_queues:82:21) npm verb audit error FetchError: request to https://registry.npmjs.org/-/npm/v1/security/audits/quick failed, reason: connect ETIMEDOUT 104.16.21.35:443 npm verb audit error at ClientRequest. (/opt/homebrew/lib/node_modules/npm/node_modules/minipass-fetch/lib/index.js:130:14) npm verb audit error at ClientRequest.emit (node:events:513:28) npm verb audit error at TLSSocket.socketErrorListener (node:_http_client:488:9) npm verb audit error at TLSSocket.emit (node:events:525:35) npm verb audit error at emitErrorNT (node:internal/streams/destroy:151:8) npm verb audit error at emitErrorCloseNT (node:internal/streams/destroy:116:3) npm verb audit error at process.processTicksAndRejections (node:internal/process/task_queues:82:21) { npm verb audit error code: 'ETIMEDOUT', npm verb audit error errno: 'ETIMEDOUT', npm verb audit error syscall: 'connect', npm verb audit error address: '104.16.21.35', npm verb audit error port: 443, npm verb audit error type: 'system' npm verb audit error } npm sill audit error undefined npm timing auditReport:getReport Completed in 150031ms npm sill audit report null npm timing audit Completed in 150038ms npm WARN audit request to https://registry.npmjs.org/-/npm/v1/security/audits/quick failed, reason: connect ETIMEDOUT 104.16.21.35:443 undefined npm timing command:audit Completed in 150042ms npm ERR! audit endpoint returned an error npm verb exit 1 npm timing npm Completed in 150097ms npm verb code 1

`

RbBtSn0w commented 2 years ago

I used NRM tool setting local env.

` nrm ls

npm ---------- https://registry.npmjs.org/ yarn --------- https://registry.yarnpkg.com/ tencent ------ https://mirrors.cloud.tencent.com/npm/ cnpm --------- https://r.cnpmjs.org/ taobao ------- https://registry.npmmirror.com/ npmMirror ---- https://skimdb.npmjs.com/registry/ `

error with 400

npm verb cli /opt/homebrew/Cellar/node/19.1.0/bin/node /opt/homebrew/bin/npm npm info using npm@8.19.3 npm info using node@v19.1.0 npm timing npm:load:whichnode Completed in 0ms npm timing config:load:defaults Completed in 1ms npm timing config:load:file:/opt/homebrew/lib/node_modules/npm/npmrc Completed in 1ms npm timing config:load:builtin Completed in 1ms npm timing config:load:cli Completed in 1ms npm timing config:load:env Completed in 0ms npm timing config:load:project Completed in 2ms npm timing config:load:file:/Users/yuanzhan/.npmrc Completed in 0ms npm timing config:load:user Completed in 0ms npm timing config:load:file:/opt/homebrew/etc/npmrc Completed in 0ms npm timing config:load:global Completed in 0ms npm timing config:load:validate Completed in 1ms npm timing config:load:credentials Completed in 0ms npm timing config:load:setEnvs Completed in 0ms npm timing config:load Completed in 7ms npm timing npm:load:configload Completed in 7ms npm timing npm:load:mkdirpcache Completed in 1ms npm timing npm:load:mkdirplogs Completed in 0ms npm verb title npm audit fix npm verb argv "audit" "fix" "--loglevel" "silly" npm timing npm:load:setTitle Completed in 2ms npm timing config:load:flatten Completed in 1ms npm timing npm:load:display Completed in 3ms npm verb logfile logs-max:10 dir:/Users/yuanzhan/.npm/_logs npm verb logfile /Users/yuanzhan/.npm/_logs/2022-11-16T09_19_29_976Z-debug-0.log npm timing npm:load:logFile Completed in 3ms npm timing npm:load:timers Completed in 0ms npm timing npm:load:configScope Completed in 0ms npm timing npm:load Completed in 16ms npm timing arborist:ctor Completed in 0ms npm sill logfile start cleaning logs, removing 1 files npm sill logfile done cleaning log files npm sill audit bulk request { heapdump: [ '0.3.15' ], nan: [ '2.17.0' ] } npm http fetch POST 404 https://mirrors.cloud.tencent.com/npm/-/npm/v1/security/advisories/bulk 260ms npm sill audit bulk request failed <!DOCTYPE html> npm sill audit npm sill audit npm sill audit npm sill audit Error npm sill audit npm sill audit npm sill audit

Cannot POST /-/npm/v1/security/advisories/bulk
npm sill audit npm sill audit npm sill audit npm http fetch POST 200 https://mirrors.cloud.tencent.com/npm/-/npm/v1/security/audits/quick 821ms npm timing auditReport:getReport Completed in 1091ms npm sill audit report {} npm timing auditReport:init Completed in 0ms npm timing audit Completed in 1100ms npm timing idealTree:init Completed in 1ms npm timing idealTree:userRequests Completed in 0ms npm sill idealTree buildDeps npm timing idealTree:#root Completed in 0ms npm timing idealTree:buildDeps Completed in 1ms npm timing idealTree:fixDepFlags Completed in 0ms npm timing idealTree Completed in 7ms npm verb shrinkwrap failed to load node_modules/.package-lock.json out of date, updated: node_modules npm timing reify:loadTrees Completed in 14ms npm timing reify:diffTrees Completed in 1ms npm sill reify moves {} npm timing reify:retireShallow Completed in 0ms npm timing reify:createSparse Completed in 0ms npm timing reify:loadBundles Completed in 0ms npm sill audit bulk request { heapdump: [ '0.3.15' ], nan: [ '2.17.0' ] } npm timing reify:unpack Completed in 0ms npm timing reify:unretire Completed in 0ms npm timing build:queue Completed in 0ms npm timing build:deps Completed in 0ms npm timing build Completed in 1ms npm timing reify:build Completed in 1ms npm timing reify:trash Completed in 0ms npm timing reify:save Completed in 2ms npm http fetch POST 404 https://mirrors.cloud.tencent.com/npm/-/npm/v1/security/advisories/bulk 269ms npm sill audit bulk request failed <!DOCTYPE html> npm sill audit npm sill audit npm sill audit npm sill audit Error npm sill audit npm sill audit npm sill audit
Cannot POST /-/npm/v1/security/advisories/bulk
npm sill audit npm sill audit npm sill audit npm http fetch POST 400 https://mirrors.cloud.tencent.com/npm/-/npm/v1/security/audits/quick 606ms npm verb audit error HttpErrorGeneral: 400 Bad Request - POST https://mirrors.cloud.tencent.com/npm/-/npm/v1/security/audits/quick - Bad Request npm verb audit error at /opt/homebrew/lib/node_modules/npm/node_modules/npm-registry-fetch/lib/check-response.js:95:15 npm verb audit error at process.processTicksAndRejections (node:internal/process/task_queues:95:5) npm verb audit error at async [getReport] (/opt/homebrew/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/audit-report.js:335:21) npm verb audit error at async AuditReport.run (/opt/homebrew/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/audit-report.js:106:19) npm verb audit error at async Arborist.reify (/opt/homebrew/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:160:24) npm verb audit error at async Audit.auditAdvisories (/opt/homebrew/lib/node_modules/npm/lib/commands/audit.js:390:5) npm verb audit error at async Audit.exec (/opt/homebrew/lib/node_modules/npm/lib/commands/audit.js:374:7) npm verb audit error at async module.exports (/opt/homebrew/lib/node_modules/npm/lib/cli.js:78:5) npm verb audit error HttpErrorGeneral: 400 Bad Request - POST https://mirrors.cloud.tencent.com/npm/-/npm/v1/security/audits/quick - Bad Request npm verb audit error at /opt/homebrew/lib/node_modules/npm/node_modules/npm-registry-fetch/lib/check-response.js:95:15 npm verb audit error at process.processTicksAndRejections (node:internal/process/task_queues:95:5) npm verb audit error at async [getReport] (/opt/homebrew/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/audit-report.js:335:21) npm verb audit error at async AuditReport.run (/opt/homebrew/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/audit-report.js:106:19) npm verb audit error at async Arborist.reify (/opt/homebrew/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:160:24) npm verb audit error at async Audit.auditAdvisories (/opt/homebrew/lib/node_modules/npm/lib/commands/audit.js:390:5) npm verb audit error at async Audit.exec (/opt/homebrew/lib/node_modules/npm/lib/commands/audit.js:374:7) npm verb audit error at async module.exports (/opt/homebrew/lib/node_modules/npm/lib/cli.js:78:5) { npm verb audit error headers: [Object: null prototype] { npm verb audit error server: [ 'tws' ], npm verb audit error date: [ 'Wed, 16 Nov 2022 09:19:32 GMT' ], npm verb audit error 'content-type': [ 'application/json; charset=utf-8' ], npm verb audit error 'x-powered-by': [ 'verdaccio/4.10.0' ], npm verb audit error 'access-control-allow-origin': [ '*' ], npm verb audit error 'cf-ray': [ '76af253f7b1504bc-HKG' ], npm verb audit error vary: [ 'origin, Accept-Encoding' ], npm verb audit error 'cf-cache-status': [ 'DYNAMIC' ], npm verb audit error 'access-control-allow-credentials': [ 'true' ], npm verb audit error 'access-control-expose-headers': [ 'Content-Type,Content-Length' ], npm verb audit error 'x-cache-lookup': [ 'Cache Miss, Cache Miss' ], npm verb audit error 'cache-control': [ 'no-cache' ], npm verb audit error 'content-length': [ '126' ], npm verb audit error 'x-nws-log-uuid': [ '3846392096471329494' ], npm verb audit error connection: [ 'keep-alive' ], npm verb audit error 'x-fetch-attempts': [ '1' ] npm verb audit error }, npm verb audit error statusCode: 400, npm verb audit error code: 'E400', npm verb audit error method: 'POST', npm verb audit error uri: 'https://mirrors.cloud.tencent.com/npm/-/npm/v1/security/audits/quick', npm verb audit error body: { npm verb audit error statusCode: 400, npm verb audit error error: 'Bad Request', npm verb audit error message: 'Invalid package tree, run npm install to rebuild your package-lock.json' npm verb audit error }, npm verb audit error pkgid: 'quick' npm verb audit error } npm sill audit error [object Object] npm timing auditReport:getReport Completed in 889ms npm sill audit report null npm timing reify:audit Completed in 889ms npm timing reify Completed in 909ms npm WARN audit 400 Bad Request - POST https://mirrors.cloud.tencent.com/npm/-/npm/v1/security/audits/quick - Bad Request { statusCode: 400, error: 'Bad Request', message: 'Invalid package tree, run npm install to rebuild your package-lock.json' } npm timing command:audit Completed in 2010ms npm ERR! audit endpoint returned an error npm verb exit 1 npm timing npm Completed in 2056ms npm verb code 1

dutscher commented 1 year ago

same here with npm info using npm@8.5.5 npm info using node@v16.15.0

tanmayghosh2507 commented 1 year ago

Any temp fix for this issue?

kilvn commented 1 year ago

before cnpm

nrm ls
  npm ---------- https://registry.npmjs.org/
  yarn --------- https://registry.yarnpkg.com/
  tencent ------ https://mirrors.cloud.tencent.com/npm/
* cnpm --------- https://r.cnpmjs.org/
  taobao ------- https://registry.npmmirror.com/
  npmMirror ---- https://skimdb.npmjs.com/registry/
  xiaopo ------- https://packages.aliyun.com/6275e7e464c8a06be2d4d293/npm/npm-registry/

then:

nrm use npm

it works!

hawkwang commented 1 year ago

I have the same problem, see as follows:

57 timing reify:build Completed in 4ms 58 timing reify:trash Completed in 0ms 59 timing reify:save Completed in 440ms 60 http fetch POST 404 https://registry.npmmirror.com/-/npm/v1/security/advisories/bulk 869ms (cache skip) 61 silly audit bulk request failed

404 Not Found

62 http fetch POST 404 https://registry.npmmirror.com/-/npm/v1/security/audits/quick 85ms (cache skip) 63 verbose audit error HttpErrorGeneral: 404 Not Found - POST https://registry.npmmirror.com/-/npm/v1/security/audits/quick 63 verbose audit error at /home/hawk/soft/node/lib/node_modules/npm/node_modules/npm-registry-fetch/lib/check-response.js:95:15 63 verbose audit error at processTicksAndRejections (node:internal/process/task_queues:96:5) 63 verbose audit error at async Map.[getReport] (/home/hawk/soft/node/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/audit-report.js:335:21) 63 verbose audit error at async Map.run (/home/hawk/soft/node/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/audit-report.js:106:19) 63 verbose audit error at async Arborist.reify (/home/hawk/soft/node/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:179:24) 63 verbose audit error at async Install.exec (/home/hawk/soft/node/lib/node_modules/npm/lib/commands/install.js:149:5) 63 verbose audit error at async module.exports (/home/hawk/soft/node/lib/node_modules/npm/lib/cli-entry.js:61:5) { 63 verbose audit error headers: [Object: null prototype] { 63 verbose audit error server: [ 'Tengine' ], 63 verbose audit error 'content-type': [ 'text/html; charset=utf-8' ], 63 verbose audit error 'content-length': [ '41' ], 63 verbose audit error connection: [ 'keep-alive' ], 63 verbose audit error 'strict-transport-security': [ 'max-age=5184000' ], 63 verbose audit error date: [ 'Wed, 05 Jul 2023 09:01:01 GMT' ], 63 verbose audit error vary: [ 'Origin' ], 63 verbose audit error 'x-frame-options': [ 'SAMEORIGIN' ], 63 verbose audit error 'x-xss-protection': [ '1; mode=block' ], 63 verbose audit error 'x-content-type-options': [ 'nosniff' ], 63 verbose audit error 'x-download-options': [ 'noopen' ], 63 verbose audit error 'x-readtime': [ '0.544' ], 63 verbose audit error 'content-encoding': [ 'gzip' ], 63 verbose audit error 'ali-swift-global-savetime': [ '1688547661' ], 63 verbose audit error via: [ ...

version for node : v16.19.1 version for npm : 9.7.2

759325100 commented 11 months ago

any update?

cliffAtOsaic commented 11 months ago

+1

I am also having this issue when I run "npm ci" from Azure DevOps pipeline:

2024-01-02T16:40:43.5807349Z npm http fetch POST 404 https://[Azure DevOps Feed Path]/npm/registry/-/npm/v1/security/advisories/bulk 13751ms

cliffAtOsaic commented 11 months ago

Here's a more detailed output from another run:

2023-12-29T22:54:13.3123718Z npm timing reifyNode:node_modules/@angular-devkit/build-angular/node_modules/@esbuild/android-arm64 Completed in 382ms 2023-12-29T22:54:13.3123940Z npm timing reifyNode:node_modules/@angular-devkit/build-angular/node_modules/@esbuild/android-arm Completed in 383ms 2023-12-29T22:54:13.3124262Z (node:9820) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' makes TLS connections and HTTPS requests insecure by disabling certificate verification. 2023-12-29T22:54:13.3124500Z (Use node --trace-warnings ... to show where the warning was created) 2023-12-29T22:54:13.3124741Z npm http fetch POST 404 https://[Azure DevOps Feed]/npm/registry/-/npm/v1/security/advisories/bulk 9075ms 2023-12-29T22:54:13.3125083Z npm http fetch POST 404 https://[Azure DevOps Feed]/npm/registry/-/npm/v1/security/audits/quick 4596ms 2023-12-29T22:54:13.3125420Z npm verb audit error HttpErrorGeneral: 404 Not Found - POST https://[Azure DevOps Feed]/npm/registry/-/npm/v1/security/audits/quick 2023-12-29T22:54:13.3125931Z npm verb audit error at C:\Program Files\nodejs\node_modules\npm\node_modules\npm-registry-fetch\check-response.js:95:15 2023-12-29T22:54:13.3126182Z npm verb audit error at processTicksAndRejections (node:internal/process/task_queues:96:5) 2023-12-29T22:54:13.3126427Z npm verb audit error at async Map.[getReport] (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\audit-report.js:337:21) 2023-12-29T22:54:13.3126718Z npm verb audit error at async Map.run (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\audit-report.js:107:19) 2023-12-29T22:54:13.3127034Z npm verb audit error HttpErrorGeneral: 404 Not Found - POST https://[Azure DevOps Feed]/npm/registry/-/npm/v1/security/audits/quick 2023-12-29T22:54:13.3127792Z npm verb audit error at C:\Program Files\nodejs\node_modules\npm\node_modules\npm-registry-fetch\check-response.js:95:15 2023-12-29T22:54:13.3128052Z npm verb audit error at processTicksAndRejections (node:internal/process/task_queues:96:5) 2023-12-29T22:54:13.3128316Z npm verb audit error at async Map.[getReport] (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\audit-report.js:337:21) 2023-12-29T22:54:13.3128614Z npm verb audit error at async Map.run (C:\Program Files\nodejs\node_modules\npm\node_modules\@npmcli\arborist\lib\audit-report.js:107:19) { 2023-12-29T22:54:13.3128838Z npm verb audit error headers: [Object: null prototype] { 2023-12-29T22:54:13.3128980Z npm verb audit error 'cache-control': [ 'private' ], 2023-12-29T22:54:13.3129137Z npm verb audit error 'content-type': [ 'text/html; charset=utf-8' ], 2023-12-29T22:54:13.3129315Z npm verb audit error 'x-tfs-processid': [ '6867b82f-c486-43ed-bb20-c28c557c626e' ], 2023-12-29T22:54:13.3129493Z npm verb audit error 'strict-transport-security': [ 'max-age=31536000; includeSubDomains' ], 2023-12-29T22:54:13.3129687Z npm verb audit error activityid: [ '49c8d3b4-ba9b-4eee-811b-3483d07dbabd' ], 2023-12-29T22:54:13.3129846Z npm verb audit error 'x-tfs-session': [ '49c8d3b4-ba9b-4eee-811b-3483d07dbabd' ], 2023-12-29T22:54:13.3130032Z npm verb audit error 'x-vss-e2eid': [ '49c8d3b4-ba9b-4eee-811b-3483d07dbabd' ], 2023-12-29T22:54:13.3130214Z npm verb audit error 'x-vss-senderdeploymentid': [ '5da9fd48-d5e2-4448-835b-2d9af52c5a3e' ], 2023-12-29T22:54:13.3130386Z npm verb audit error 'x-vss-userdata': [ 2023-12-29T22:54:13.3130567Z npm verb audit error 'd1192a19-16a1-4213-8d7a-88f20e65bca7:9fc3d039-01a8-4a69-bb71-74cfe9c01cb1' 2023-12-29T22:54:13.3130718Z npm verb audit error ], 2023-12-29T22:54:13.3130845Z npm verb audit error 'x-frame-options': [ 'SAMEORIGIN' ], 2023-12-29T22:54:13.3130990Z npm verb audit error 'x-tfs-serviceerror': [ 'Page%20not%20found.' ], 2023-12-29T22:54:13.3131126Z npm verb audit error 'x-powered-by': [ 'ASP.NET' ], 2023-12-29T22:54:13.3131317Z npm verb audit error p3p: [ 2023-12-29T22:54:13.3131483Z npm verb audit error 'CP="CAO DSP COR ADMa DEV CONo TELo CUR PSA PSD TAI IVDo OUR SAMi BUS DEM NAV STA UNI COM INT PHY ONL FIN PUR LOC CNT"' 2023-12-29T22:54:13.3131646Z npm verb audit error ], 2023-12-29T22:54:13.3131754Z npm verb audit error 'lfs-authenticate': [ 'NTLM' ], 2023-12-29T22:54:13.3131899Z npm verb audit error 'x-content-type-options': [ 'nosniff' ], 2023-12-29T22:54:13.3132045Z npm verb audit error date: [ 'Fri, 29 Dec 2023 22:53:22 GMT' ], 2023-12-29T22:54:13.3132182Z npm verb audit error 'content-length': [ '19979' ], 2023-12-29T22:54:13.3132315Z npm verb audit error 'x-fetch-attempts': [ '1' ] 2023-12-29T22:54:13.3132419Z npm verb audit error }, 2023-12-29T22:54:13.3132541Z npm verb audit error statusCode: 404, 2023-12-29T22:54:13.3132648Z npm verb audit error code: 'E404', 2023-12-29T22:54:13.3132755Z npm verb audit error method: 'POST', 2023-12-29T22:54:13.3132994Z npm verb audit error uri: 'https://[Azure DevOps Feed]/npm/registry/-/npm/v1/security/audits/quick', 2023-12-29T22:54:13.3133392Z npm verb audit error body: <Buffer 0d 0a 3c 21 44 4f 43 54 59 50 45 20 68 74 6d 6c 3e 0d 0a 3c 68 74 6d 6c 3e 0d 0a 20 20 20 20 3c 68 65 61 64 3e 0d 0a 20 20 20 20 20 20 20 20 3c 74 69 ... 19929 more bytes>, 2023-12-29T22:54:13.3133595Z npm verb audit error pkgid: 'quick' 2023-12-29T22:54:13.3133692Z npm verb audit error } 2023-12-29T22:54:13.3133848Z npm timing auditReport:getReport Completed in 14061ms 2023-12-29T22:54:13.3133986Z npm timing reify:audit Completed in 14062ms 2023-12-29T22:54:13.3134246Z npm http fetch GET 200 https://[Azure DevOps Feed]/npm/registry/xmlbuilder/-/xmlbuilder-15.1.1.tgz 13024ms (cache miss) 2023-12-29T22:54:13.3134715Z npm timing reifyNode:node_modules/xmlbuilder Completed in 14601ms

Franccesco1907 commented 7 months ago

any update?

sivanzheng commented 4 months ago

any update?

Maopy commented 4 months ago

any update?

AndreaMontalbani commented 2 months ago

Hi all, the body of the response contains a hint: 'Invalid package tree, run npm install to rebuild your package-lock.json'

Could it be that your package-lock is built with an incompatible versione of npm?

TrumanXia commented 2 months ago

any update?

LiuYimin commented 2 months ago

same problem hope any help

lure8225 commented 1 week ago

similar problem, I'm using a mirror for the registry which doesn't have the audit endpoint. Is there any way to supply a separate registry and audit url?

NameFILIP commented 1 week ago

If someone is seeing this error when using Artifactory, see below:

  1. Artifactory calls JFrog Xray when an "npm audit" is requested.
  2. JFrog Xray v3.44.2 and below has a bug: https://jfrog.com/help/r/xray-release-information/xray-3.44.2-and-below
  3. This bug was fixed in v3.44.3: https://jfrog.com/help/r/xray-release-information/xray-3.44
lure8225 commented 6 days ago

good find but this was fixed quite some time ago (Released: March 17, 2022) I will never the less double check.

However this might be a hint, if you want to use audit do you have to do any extra xray configurations for that npm mirror