ProjectStack
npm

npm WARN deprecated — package deprecated

A package you're installing (or one of its dependencies) has been marked as deprecated by its maintainer. It still works but may have security issues or lack updates.

Common causes

  • The package maintainer added a deprecation notice to the npm registry
  • A transitive dependency (a dependency of your dependency) is deprecated
  • You're installing an old version of a package that has been superseded
  • The package was abandoned and a different package is now the recommended replacement

How to fix it

  1. Check the deprecation message — it usually suggests a replacement package
  2. Search for the recommended alternative and migrate to it
  3. If it's a transitive dependency, check if upgrading the parent package fixes it
  4. For now, the package usually still works — treat this as a future migration task

Example

npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142

Installing a package that depends on the deprecated 'request' HTTP library

Have a different error?

Paste any error message into the Error Translator to get an instant explanation.