How to restore/reset npm configuration to default values?

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

    If it's about just one property - let's say you want to temporarily change some default, for instance disable CA checking: you can do it with

    npm config set ca ""

    To come back to the defaults for that setting, simply

    npm config delete ca

    To verify, use npm config get ca.

提交回复
热议问题