0

How can I fix npm errors and warnings? It worked before... But now it doesn't work... Also does npm audit fix work?

npm -v 6.14.6 node -v v12.18.4

npm notice created a lockfile as package-lock.json. You should commit this file. npm WARN [email protected] No description npm WARN [email protected] No repository field.

  • [email protected] added 217 packages from 213 contributors and audited 217 packages in 8.82s

4 packages are looking for funding run npm fund for details

found 1 low severity vulnerability run npm audit fix to fix them, or npm audit for details

Users-MacBook-Pro:meeting user$ npm fund [email protected] ├─┬ https://github.com/sponsors/jonschlinkert │ └── [email protected] ├─┬ https://github.com/sponsors/RubenVerborgh │ └── [email protected] ├─┬ https://github.com/sponsors/sindresorhus │ └── [email protected] └─┬ https://github.com/chalk/ansi-styles?sponsor=1
└── [email protected]

Users-MacBook-Pro:meeting user$ npm audit fix npm WARN [email protected] No description npm WARN [email protected] No repository field.

up to date in 0.69s

4 packages are looking for funding run npm fund for details

fixed 0 of 1 vulnerability in 217 scanned packages 1 vulnerability required manual review and could not be updated Users-MacBook-Pro:meeting user$

bad_coder
  • 11,289
  • 20
  • 44
  • 72
  • 1
    It's better to wrap console output in a quote or code block. If you put it in like normal text then it's hard to find your question in it. There's not much to fix. Some npm packages have vulnerabilities found over time. Mostly it goes away when you update your dependencies. As for your package ([email protected]) WARN. Happens if you initiate your package with default values (`npm init -y`). It doesn't impact how your package works and you don't need to do anything about it if it's local only project. Check [documentation](https://docs.npmjs.com/files/package.json) for more info. – Sharak Oct 04 '20 at 20:39
  • Does this answer your question? [npm WARN package.json: No repository field](https://stackoverflow.com/questions/16827858/npm-warn-package-json-no-repository-field) – jonrsharpe Oct 22 '20 at 07:31

0 Answers0