如何不推荐使用私有github软件包版本

时间:2020-09-02 07:47:04

标签: github npm

我有一个带有多个版本的私有github软件包,我想在旧版本中添加弃用通知。我尝试使用下面的npm命令不起作用

npm deprecate --registry https://npm.pkg.github.com/privateregistry my-package@1.0.10 "This package is deprecated, Please use latest version"

但是我得到以下错误

npm ERR! code E404
npm ERR! 404 Not Found - GET https://npm.pkg.github.com/privateregistry/my-package?write=true - Package [my-package] was not found
npm ERR! 404 
npm ERR! 404  'my-package@1.0.10' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404 
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

0 个答案:

没有答案