umijs / umi-next

The next version of umi. (under development)
https://next.umijs.org/
MIT License
608 stars 97 forks source link

[Bug] umi@next node_modules\@umijs\bundler-vite: Command failed. #798

Open Aloento opened 2 years ago

Aloento commented 2 years ago

What happens?

新建项目时出现报错

[4/4] Building fresh packages...
[4/4] ⠁ @umijs/bundler-vite
[-/4] ⠁ waiting...
[-/4] ⠁ waiting...
error D:\Codes\Math\node_modules\@umijs\bundler-vite: Command failed.
Exit code: 1
Command: node scripts/linkDeps.js
Arguments:
Directory: D:\Codes\Math\node_modules\@umijs\bundler-vite
Output:
node:internal/fs/utils:345
    throw err;
    ^

Error: EISDIR: illegal operation on a directory, symlink 'D:\Codes\Math\node_modules\@umijs\bundler-utils\compiled\less' -> 'D:\Codes\Math\node_modules\@umijs\bundler-vite\node_modules\less'
    at Object.symlinkSync (node:fs:1676:3)
    at Object.<anonymous> (D:\Codes\Math\node_modules\@umijs\bundler-vite\scripts\linkDeps.js:16:4)
    at Module._compile (node:internal/modules/cjs/loader:1105:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Module._load (node:internal/modules/cjs/loader:827:12)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
    at node:internal/main/run_main_module:17:47 {
  errno: -4068,
  syscall: 'symlink',
  code: 'EISDIR',
  path: 'D:\\Codes\\Math\\node_modules\\@umijs\\bundler-utils\\compiled\\less',
  dest: 'D:\\Codes\\Math\\node_modules\\@umijs\\bundler-vite\\node_modules\\less'
}

Mini Showcase Repository(REQUIRED)

新建项目
npx create-umi@next

Context

sorrycc commented 2 years ago

@PeachScript 看下。