Skip to content

Mac端Vue脚手架安装报错:ERR! code EEXIST; ERR! Refusing to delete xxx #58

@gitgundam

Description

@gitgundam

Mac端vue脚手架安装的报错

这几天安装Vue的脚手架,全局安装vue/cli. 但是安装时出现问题,以下是报错截图
在这里插入图片描述

解决办法

  • Mac用户前往npm的node_modules文件夹
  • 点击窗口-前往-下面这个地址
/usr/local/lib/node_modules
  • 删除图中的@VUE文件夹
    在这里插入图片描述
  • 再次运行npm install -g @vue/cli
    然后成功

在这里插入图片描述

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions