Skip to content

[BUG] npm i -g 更新全局安装的包时报错 File exists #200

@Tsuk1ko

Description

@Tsuk1ko

描述错误
使用 npm i -g 更新全局安装的包时必现报错 File exists,虽然这不影响安装过程或使用

重现步骤

npm i -g xxx

预期行为
不会报错

截图
Image

桌面设备(请填写以下信息):

  • 操作系统: macOS 15.6
  • 架构: arm64
  • 版本: 4.1.2

附加上下文
我使用 nvmd 安装了多个版本的 node,不知道与这是否有关
我了解 nvmd 此时可能是在 ~/.nvmd/bin 中创建软链接,会不会是已存在而没有正确判断导致

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions