Renaming a published NPM module

前端 未结 7 1990
礼貌的吻别
礼貌的吻别 2020-12-23 11:14

Is there any way to rename an NPM module that has already been published? I want to change the name of my module to more accurately match the API it exposes but would not li

7条回答
  •  攒了一身酷
    2020-12-23 11:33

    Something marvelous just happened to me: I managed to rename a package. It was originally known as stdout-renderer, but I changed every possible occurence of the name, and republished it after having deprecated the original and voila it shows up under its new name (cli-artist) undeprecated in the newly updated list. I'm not sure which field to change, but I would imagine it be in package.json because that's the only one where the casing matched in my case.

    hope that helps!

提交回复
热议问题