码迷,mamicode.com
首页 > 其他好文 > 详细

npm reset config

时间:2016-06-15 10:47:19      阅读:200      评论:0      收藏:0      [点我收藏+]

标签:

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)

 

npm reset config

标签:

原文地址:http://www.cnblogs.com/fenle/p/5586496.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!