yarn install. Part of the output is as follows:
yarn install v1.10.1 info No lockfile found. [1/4] Resolving packages... warning @beaker/webdb > level-browserify > level-js > xtend > firstname.lastname@example.org:
The question: What does this warning mean?
The whole output:
yarn install v1.10.1 info No lockfile found. [1/4] Resolving packages... warning @beaker/webdb > level-browserify > level-js > xtend > email@example.com: warning karma > log4js > firstname.lastname@example.org: CircularJSON is in maintenance only, flatted is its successor. [2/4] Fetching packages... info email@example.com: The platform "linux" is incompatible with this module. info "firstname.lastname@example.org" is an optional dependency and failed compatibility check. Excluding it from installation. [3/4] Linking dependencies... warning "angular4-material-table > @email@example.com" has incorrect peer dependency "@firstname.lastname@example.org". [4/4] Building fresh packages... success Saved lockfile. Done in 202.88s
What’s happening here is that
email@example.com has been marked as deprecated, but there is no message.
You can see via
npm view firstname.lastname@example.org --json
that there is a
deprecated field with an empty string. I’m not sure how npm clients are supposed to treat this but
yarn simply checks if
deprecated is a string and displays a warning with the provided deprecation message.
Unfortunately, the warning doesn’t say anything about it being about a deprecation and coupled with an empty message, you end up with a mystery warning.
Answered By – thatsmydoing
Answer Checked By – Cary Denson (Easybugfix Admin)