yarn create @umijs/umi-app
报错Error: EPERM: operation not permitted, mkdir ‘C:***‘
解决办法:找到用户目录,我的用户目录为:C:\Users\jin【C:\Users{账户}\】,删除目录下的.npmrc文件。
yarn install
yarn add @umijs/preset-ui -D
"scripts": {
"start:umi-ui": "set UMI_UI=1 && umi dev",
},
yarn start:umi-ui
DONE Compiled successfully in 9501ms
App running at:
- Local: http://localhost:8000 (copied to clipboard)
- Network: http://172.20.10.10:8000