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

后端 未结 4 1834
萌比男神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:45

    Github Package registry expected the name properties on package.json to be "@{github username}/{package name} for example:-

    "name": "@pravanjan/local-time",
    "publishConfig": { 
         "registry": "https://npm.pkg.github.com/" 
     },
    

    This did work for me

提交回复
热议问题