1、删除node_modules

2、永久切换为国内镜像源(推荐阿里云镜像)

npm config set registry https://registry.npmmirror.com

3、验证是否生效

npm config get registry

4、清理缓存并重试(解决卡住不动问题)

npm cache clean --force
rm -rf node_modules package-lock.json  # Linux/macOS
# Windows: Remove-Item -Recurse -Force node_modules
npm install

Logo

小龙虾开发者社区是 CSDN 旗下专注 OpenClaw 生态的官方阵地,聚焦技能开发、插件实践与部署教程,为开发者提供可直接落地的方案、工具与交流平台,助力高效构建与落地 AI 应用

更多推荐