npm,yarn如何查看源和换源,删除node_modules

npm, yarn查看源和换源:

pm config get registry // 查看npm当前镜像源

npm config set registry https://registry.npmmirror.com // 设置npm镜像源为淘宝镜像

yarn config get registry // 查看yarn当前镜像源

yarn config set registry https://registry.npmmirror.com // 设置yarn镜像源为淘宝镜像

macOS、Linux 系统可以使用 rm 命令进行删除。

rm -r node_modules

相关推荐
非优秀程序员41 分钟前
第10章 千团出世|《互联网产品恩仇录》
前端
非优秀程序员1 小时前
第11章 小高在对面|《互联网产品恩仇录》
前端
非优秀程序员1 小时前
第14章 只剩美团|《互联网产品恩仇录》
前端
非优秀程序员1 小时前
第09章 老乡何必为难老乡|《互联网产品恩仇录》
前端
非优秀程序员1 小时前
第03章 三大门户,烽烟起于瀛海威|《互联网产品恩仇录》
前端
非优秀程序员1 小时前
第02章 杭电的英语老师与一台服务器|《互联网产品恩仇录》
数据库·node.js·代码规范
周杰伦的稻香2 小时前
Hexo 腾讯视频追剧页插件:hexo-tengxun-eucalyptus 安装使用
npm
曦樂~5 小时前
【Web Development】02 CSS
前端·css
风骏时光牛马5 小时前
后端服务接口开发与数据逻辑处理
前端
东鹏特饮5 小时前
经典打砖块(Breakout)游戏
前端·css·css3