Hello,
I run a private gitlab-ee on my server and got a private npm registry on it.
I’ve followed the documentation and managed to get the repository working (eg: I can correctly fetch and publish packages).
However I noticed the npm unpublish command doesn’t work.
Is there a known limitation about this feature ?
1 Like
This feature was working for me till this morning 9am (GMT+8:00). Has there been an update to the SaaS environment?
According to the npm docs the command npm unpublish
is not encouraged anymore, see npm-unpublish | npm Docs .
Instead we should use npm deprecate
. The support for the command npm deprecate
was introduced in GitLab 16.0, see npm packages in the Package Registry | GitLab and Add support for npm deprecate (#396763) · Issues · GitLab.org / GitLab · GitLab
For the next person to stumble across this topic and the sake of documenting the current approach.