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

后端 未结 4 1790
萌比男神i
萌比男神i 2021-02-19 03:31

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 03:42

    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.

提交回复
热议问题