package下面的bug和components项目都是 "umi": "^4.0.70" 的项目
创建完成后,在主目录运行yarn install 就会以下错误
yarn install
报错信息为
Directory: C:\Users\wangc\Desktop\333\umi4_workSpace_bug\node_modules\@umi4-test\componentsOutput:
node:internal/modules/cjs/loader:1024 throw err;
^
Error: Cannot find module 'C:\Users\wangc\Desktop\333\umi4_workSpace_bug\node_modules\node_modules\umi\bin\umi.js' at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1021:15)
at Function.Module._load (node:internal/modules/cjs/loader:866:27) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:22:47 {