npm / npm/cli

[BUG] npm deprecate does not support alpha characters

Open
#3,839 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bug Needs Triage Release 7.x
Dominant language
JavaScript
Stars
10.1k
Forks
4.7k
Avg merge
2d 2h
Merged PRs (30d)
19

Description

Is there an existing issue for this?
  • I have searched the existing issues
Current Behavior

npm ERR! code E400
npm ERR! 400 Bad Request - PUT https://registry.npmjs.org/@globules-io%2fogx.js - deprecations must be strings

Expected Behavior

deprecate the package that I was allowed to publish
If characters are not allowed in version then publish should not work.

Note that these versions undeprecated successfully (??)
1.8.7-b
1.8.7-c
1.8.7-d

Steps To Reproduce

npm deprecate @globules-io/ogx.js@1.8.7-f deprecated

Environment
  • OS: Windows 10 x64
  • Node: 16.10.0
  • npm: 7.24.2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing npm deprecate @globules-io/ogx.js@1.8.7-f deprecated with npm 7.24.2 on Node 16.10.0, then compare it with the listed versions that undeprecated successfully. Trace the npm CLI and registry request involved in deprecating a published package; done means the command succeeds for the reproducible package version without changing valid version handling.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs
Domain
cli, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.