How to restore/reset npm configuration to default values?

前端 未结 6 862
孤街浪徒
孤街浪徒 2020-12-04 09:32

I have played with npm set and npm config set for several times, now I want to reset to default values (a kind of factory reset).

D

6条回答
  •  悲哀的现实
    2020-12-04 10:02

    npm config edit

    Opens the config file in an editor. Use the --global flag to edit the global config. now you can delete what ever the registry's you don't want and save file.

    npm config list will display the list of available now.

提交回复
热议问题