Not Found - PUT https://npm.pkg.github.com/package-name

后端 未结 4 1167
慢半拍i
慢半拍i 2021-02-19 03:00

I\'m trying to upload a package on GPR (Github Package registry). I log in successfully:

npm login --registry=https://npm.pkg.github.com

and th

4条回答
  •  没有蜡笔的小新
    2021-02-19 04:02

    For example:

    {
      "name": "@elvisjs/calling-elvis",
      "repository": {
        "type": "git",
        "url": "https://github.com/elvisjs/calling-elvis"
      },
      "publishConfig": {
        "registry": "https://npm.pkg.github.com/elvisjs"
      }
    }
    

    The name, repository/url and the publishConfig/registry must be matched.

提交回复
热议问题