-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
npm deprecate doesn't alter the package metadata #384
Comments
It seems that I've been experiencing the exact same issue. I've been trying to mark my package (ngx-ytd-api) on NPM as deprecated with the following command: npm deprecate ngx-ytd-api "Package is no longer maintained. Use the JavaScript gapi client instead." No message is shown and the package still does not have any deprecated message. I've even tried specifying the
For now, the only workaround is to specify a version range: npm deprecate ngx-ytd-api@">= 1.0.0-alpha.1" "<message>" I've contacted the npm support team as well, in case this is a registry issue. However, their work hours are Mondays to Fridays from 9AM - 6PM PST, so I'll only hear back from them on Monday. |
As far as I’m aware, an explicit version range has always been required. |
@ljharb However, the NPM documentation for deprecating and undeprecating packages/package versions does mention that:
EDIT: Tests for the Lines 129 to 151 in ac3739f
|
Secondly, while installing the edricchan@Edrics-Macbook-Pro:~/Desktop/Projects/npm-test$ npm i ngx-ytd-api
npm WARN [email protected] requires a peer of @angular/common@^6.0.0 || ^7.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of @angular/core@^6.0.0 || ^7.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of rxjs@^6.2.2 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of @angular/common@^6.0.0 || ^7.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of @angular/core@^6.0.0 || ^7.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of rxjs@^6.2.2 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] No description
npm WARN [email protected] No repository field.
+ [email protected]
added 3 packages from 2 contributors and audited 4 packages in 2.258s
found 0 vulnerabilities With a specific version range: edricchan@Edrics-Macbook-Pro:~/Desktop/Projects/npm-test$ npm i [email protected]
npm WARN deprecated [email protected]: Package is no longer maintained. Use the JavaScript gapi client instead.
npm WARN [email protected] requires a peer of @angular/common@^6.0.0 || ^7.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of @angular/core@^6.0.0 || ^7.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of rxjs@^6.2.2 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of @angular/common@^6.0.0 || ^7.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of @angular/core@^6.0.0 || ^7.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of rxjs@^6.2.2 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] No description
npm WARN [email protected] No repository field.
+ [email protected]
updated 1 package and audited 4 packages in 3.307s
found 0 vulnerabilities |
A member of the npm team has commented to my support request with the following reply: Text transcription:
|
The text was updated successfully, but these errors were encountered: