2

I have 1 dependency in a form of "protobufjs": "git+https://github.com/danieldanielecki/protobufjs-angularfire.git#master", i.e. installed using npm install --save https://github.com/danieldanielecki/protobufjs-angularfire#master. Is there any way to include this in npm audit? Whenever I'm trying to audit the package, which I need to fetch that way my npm audit fails with the following error:

$ npm audit
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.

This is really annoying in terms of CI, because my pipeline fails then.

This question is unrealted with `npm audit` keeps returning "Your configured registry (https://registry.npmjs.org/) does not support audit requests.". How do I make it work again?, didn't find answer there (or anywhere else).

Daniel Danielecki
  • 8,508
  • 6
  • 68
  • 94
  • 1
    This is working for me. Create a clean directory, do `npm init` to create a package.json, then `npm install https://github.com/danieldanielecki/protobufjs-angularfire#master`, then `npm audit` and it generates a clean report. This is with npm 6.9.0. Maybe something in your `.npmrc` configuration is causing this? – broofa Aug 17 '19 at 14:05
  • @broofa thanks for the fresh idea! Removing everything from `node_modules` and installing it again fixed this, and the pipeline passes as well! – Daniel Danielecki Aug 17 '19 at 18:27

1 Answers1

2

Thanks to @broofa for a quick test and a fresh idea, solution:

  1. rm -rf node_modules
  2. npm install
  3. npm install https://github.com/danieldanielecki/protobufjs-angularfire#master
  4. npm audit works again!

There was some problem with incompatibility or something in node_modules, I did also delete npm-shrinkwrap.json and generated a new one.

Daniel Danielecki
  • 8,508
  • 6
  • 68
  • 94