You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

无法通过npm安装@mui/icons-material的问题求助

解决npm安装@mui/icons-material卡住的问题
  • 切换国内npm镜像源,提升下载速度:

    npm config set registry https://registry.npmmirror.com
    npm install @mui/icons-material
    
  • 清理残留文件后重新安装:

    1. 按Ctrl+C终止当前卡住的安装进程
    2. 删除本地依赖目录和锁文件:
      • macOS/Linux:rm -rf node_modules package-lock.json
      • Windows:rmdir /s /q node_modules && del package-lock.json
    3. 重新执行安装命令:npm install @mui/icons-material
  • 更换包管理器尝试:

    • 使用yarn:yarn add @mui/icons-material
    • 使用pnpm:pnpm add @mui/icons-material
  • 跳过可选依赖fsevents安装(针对非macOS环境):

    npm install @mui/icons-material --no-optional
    
  • 检查网络稳定性,尝试切换网络环境(如从WiFi换有线网络、手机热点)后重新安装

内容的提问来源于stack exchange,提问作者Sai teja

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.01 19:45:21