To reset user defaults

Run this in the command line (or git bash on windows):

echo "" > $(npm config get userconfig)
npm config edit

 

To reset global defualts

echo "" > $(npm config get globalconfig)
npm config --global edit

 

If you need sudo that run this instead:

sudo sh -c 'echo "" > $(npm config get globalconfig)'

 

posted on 2016-06-15 10:20  jzfan  阅读(851)  评论(0编辑  收藏  举报