@vue/cli source and destination must not be the same

报错

Source and destination must not be the same.
Error: Source and destination must not be the same.
    at Object.checkPathsSync (...\node_modules\fs-extra\lib\util\stat.js:52:11)

原因

stat.js 中打断点,发现dist 目录下有index.html

(vue-cli 将dist/index.html认为入口了?所以报源与目标不能相同。)

解决

删除dist目录。(删除vue-cli 的输出目录)

npm run serve

相关推荐

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-06-12 10:40:03       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-06-12 10:40:03       100 阅读
  3. 在Django里面运行非项目文件

    2024-06-12 10:40:03       82 阅读
  4. Python语言-面向对象

    2024-06-12 10:40:03       91 阅读

热门阅读

  1. 网络安全(补充)

    2024-06-12 10:40:03       32 阅读
  2. MyBatis-RedisCache源码分析

    2024-06-12 10:40:03       30 阅读
  3. 软件测试--第六章、系统功能测试

    2024-06-12 10:40:03       30 阅读
  4. 手写节流防抖函数

    2024-06-12 10:40:03       28 阅读
  5. AI热会逐渐降温,AGI普及不了多少场景

    2024-06-12 10:40:03       29 阅读
  6. C++移动语义

    2024-06-12 10:40:03       25 阅读