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

相关推荐
李姆斯4 小时前
为啥Agent在coding表现这么好,但是在别的领域就是差的不少?
前端·agent·ai编程
鱼与宇7 小时前
前端Web(html+css+js+vue3)
前端
倾颜8 小时前
NestJS 核心概念梳理:从 Module、Controller 到 Guard、Interceptor
后端·node.js·nestjs
雪芽蓝域zzs9 小时前
(六)打包优化 + Nginx 部署完整配置 + 项目收尾
前端·vue.js
研☆香9 小时前
聊一聊前端的常见字 关键字
开发语言·前端·javascript
东风破_9 小时前
JWT 1:从一个登录请求开始,理解 React 项目里的 API 层与 Mock
前端·后端
东风破_9 小时前
JWT 3:为什么 Token 要放进 Authorization?Axios 拦截器到底解决了什么?
前端·后端
东风破_9 小时前
JWT 5:路由守卫是什么?把整个 JWT 登录鉴权流程串起来
前端·后端
东风破_9 小时前
JWT 2:HTTP 是无状态的,为什么登录成功后还要给 Token?
前端·后端
东风破_9 小时前
JWT 4:Zustand 到底解决了什么?为什么登录状态要放进 Store?
前端·后端