`npm audit` keeps returning “Your configured registry (https://registry.npmjs.org/) does not support audit requests.”. How do I make it work again?

后端 未结 4 883
南笙
南笙 2020-12-16 11:59

Here is the error I get:

npm ERR! code ENOAUDIT
npm ERR! audit Your configured registry (https://registry.npmjs.org/) does not support audit requests.


        
相关标签:
4条回答
  • 2020-12-16 12:11

    I found that the answer given at https://npm.community/t/your-configured-registry-https-registry-npmjs-org-does-not-support-audit-requests/3600/6 worked, where none of the above answers helped:

    delete your node_modules folder then try running npm install --> npm update --> npm audit

    0 讨论(0)
  • 2020-12-16 12:19

    Try running npm update and then npm audit. This should fix the problem.

    0 讨论(0)
  • 2020-12-16 12:31

    You could have it when in your package.json you have something like "PACKAGE_NAME": "github:USERNAME/PACAKGE_NAME", or any other different pattern rather than the typical one, i.e. "PACKAGE_NAME": "PACKAGE_VERSION".

    0 讨论(0)
  • 2020-12-16 12:33

    First

    npm install -g npm

    then

    npm audit

    may solve your problem

    0 讨论(0)
提交回复
热议问题