umijs / umi

A framework in react community ✨
https://umijs.org
MIT License
15.34k stars 2.65k forks source link

[Bug] mac yarn global add umi $ umi -v 报错 #12587

Closed panshuangqing closed 2 months ago

panshuangqing commented 3 months ago

mac 基本安装和查看版本报错

image image

fatal - Error: Invalid command ui, it's not registered. at Service.run (/opt/homebrew/lib/node_modules/umi/node_modules/@umijs/core/dist/service/service.js:264:13) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Service.run2 (/opt/homebrew/lib/node_modules/umi/dist/service/service.js:65:12) at async Object.run (/opt/homebrew/lib/node_modules/umi/dist/cli/cli.js:56:7) fatal - A complete log of this run can be found in: fatal - /Users/houyanan/node_modules/.cache/logger/umi.log fatal - Consider reporting a GitHub issue on https://github.com/umijs/umi/issues

What happens?

Mini Showcase Repository(REQUIRED)

Please provide a minimal reproduction then upload to your GitHub. 请提供 最小重现,并上传到你的 GitHub 仓库

How To Reproduce

Steps to reproduce the behavior: 1. 2.

Expected behavior 1. 2.

Context

Jinbao1001 commented 2 months ago

umi版本等信息提供一下. 最好有个最小复现.