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

相关推荐
xurileidian2 小时前
第 17 篇 · 边玩边学Python · for 遍历 enumerate 与 zip
java·前端·python
掘金安东尼3 小时前
更多审查智能体,更少盲区:GitHub Copilot 代码审查是怎么做的
前端·github copilot
SEO_juper3 小时前
HTTPS 混合内容检查工具:页面全站 https 了,但还有 http 资源在拖后腿
开发语言·网络协议·http·https·node.js·json·bash
Hilaku5 小时前
2026 年了,jQuery 真的该死了吗?
前端·javascript·程序员
zach5 小时前
吃透 React setState 同步异步之谜:从批量更新、事件循环到版本演进的完整拆解
前端·react.js
不服老的小黑哥5 小时前
02-从 pnpm dev 到 Spring Boot 启动:后端服务到底怎么跑起来?
前端
htzyl2065 小时前
javaScript——this 的四种绑定:为什么箭头函数改不了它
前端·javascript
欧雷殿5 小时前
做自己的第一位客户:一人公司的数据治理公开实践
前端·ai编程·团队管理
掘金安东尼6 小时前
换上 Gemini 4 Neon 之后,我改了哪些上下文工程大模型
前端
涛涛ing7 小时前
我把项目里的 Zustand 全删了:代码量减半,Bug 少了,性能还起飞了
前端