首页 > 其他 > 详细

npm reset config

时间:2016-06-15 10:45:38      阅读:399      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!