The npm community forum has been discontinued.
To discuss usage of npm, visit the GitHub Support Community.
[npm/cli] - Warn user when latest package version is deprecated
Similar to what is outputted when a user installs a targetted deprecated package version.
npm i deprecatedPackage@1.2.3 // `npm WARN deprecated deprecatedPackage@1.2.3 ...`
we should warn the user by default when the latest package version is itself, deprecated.
E.g if the latest version was indeed
1.2.3 and that version was deprecated then the following should happen:
npm i deprecatedPackage // `npm WARN deprecated deprecatedPackage@latest ...`
I see something appropriate already? At least in the case the whole package had been deprecated:
$ npm init -y $ npm install @shadowspawn/arm ... npm WARN deprecated @firstname.lastname@example.org: Renamed to @shadowspawn/forest-arborist ... $ npm --version 6.4.1
Yeah I believe your right, when the entire package, or a target version is deprecated.
Not when the latest version itself is deprecated and installed without a target.