The npm community forum has been discontinued.
To discuss usage of npm, visit the GitHub Support Community.
npm warnings and invalid packages
How do I fix npm warnings and invalid packages?
For example: I am getting a bunch of warnings on running npm install as follows:
npm WARN deprecated @firstname.lastname@example.org: ‘@types/adal’ is now ‘@types/adal-angular’
npm WARN deprecated [email@example.com]: Thanks for using Babel: we recommend using babel-preset-env now: please read babeljs.io/env to update!
npm WARN deprecated [firstname.lastname@example.org]: This version is no longer maintained. Please upgrade to the latest version.
npm WARN deprecated [email@example.com]: scmp v2 uses improved core crypto comparison since Node v6.6.0
npm WARN deprecated [firstname.lastname@example.org]: This version is no longer maintained. Please upgrade to the latest version.
How do I fix these warnings?
Also, here is the package structure for jest which says invalid. How do I fix that? What does this structure represent?
±- UNMET PEER DEPENDENCY email@example.com invalid
| `-- firstname.lastname@example.org
| ±- email@example.com
For the npm WARN deprecated, that means that the package author has marked it as deprecated, so you should follow the instructions in the message.
For the unmet peer dependency, it means that one of your dependencies has a peer dependency on
jest, so you need to install it with
npm i firstname.lastname@example.org.