How to restore/reset npm configuration to default values?

前端 未结 6 856
孤街浪徒
孤街浪徒 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:16

    If you run npm config edit, you'll get an editor showing the current configuration, and also a list of options and their default values.

    But I don't think there's a 'reset' command.

提交回复
热议问题