There is a project that needs to use UMI, so it is decided to use the scaffolding method of UMI to create the project, which can save a lot of things, although it should not be advocated. But there is the problem of line and surface
PS F:\data-train> yarn create umi yarn create v1.21.1 [1/4] Resolving packages... [2/4] Fetching packages... error An unexpected error occurred: "C:\\Users\\num\\AppData\\Local\\Yarn\\Cache\\v6\\npm-doctrine-2.1.0-5cd01fc101621b42c4cd7f5d1a66243716d3f39d-integrity\\node_modules\\doctrine\\.yarn-metadata.json: Unexpected end of JSON input". info If you think this is a bug, please open a bug report with the information provided in "C:\\Users\\num\\AppData\\Local\\Yarn\\Data\\global\\yarn-error.log". info Visit https://yarnpkg.com/en/docs/cli/create for documentation about this command. PS F:\data-train> npm create umi npm ERR! code ENOLOCAL npm ERR! Could not install from "Data\npm-cache\_npx\13476" as it does not contain a package.json file. npm ERR! A complete log of this run can be found in: npm ERR! d:\user\工号\Application Data\npm-cache\_logs\2019-12-21T09_22_57_009Z-debug.log install [email protected] error, error code:1
error an unexpected error occurred: "C:\\users\\job number\\appdata\\local\\yarn\\cache\\ V6\\npm-document-2.1.0-5cd01fc101621b42c4cd7f5d1a66243716d3f39d integrity\\node_ modules\\doctrine\\.yarn- metadata.json : unexpected end of JSON input "." yarn "is found after changing the\\in to \- metadata.json Delete this file and re execute
yarn create UMI to install it
- [Solved] umi Project Create Error: Rendered more hooks or Rendered fewer hooks
- [Solved] Ant Design Pro Project Startup Error: ChunkError mf-va_remoteEntry umi
- [MAC] How to Solve zsh Error: command not found: umi
- Yarn add package loading error: operation not permitted, unlink …
- Conda create New environment Error: An unexpected error has occurred. Conda has prepared the above report.
- [Solved] Yarn install Error: “error Found incompatible module.”
- [Solved] yarn error ExitCodeException exitCode=127
- Tensorflow Run Error or the interface is stuck or report error: Could not create cudnn handle: CUDNN_STATUS_INTERNAL_ERROR
- Puppeteer Error: Chromium revision is not downloaded. Run “npm install“ or “yarn install“
- How to Solve Yarn environment installation dependency error: (info [email protected])
- [Solved] Exception in thread “main“ org.apache.spark.SparkException: When running with master ‘yarn‘ either
- Spark-shell startup error: Yarn application has already ended! It might have been killed or unable to launch application master
- Yarn install error: 00h00m00s 0/0: : ERROR: [Errno 2] No such file or directory: ‘install‘
- [Solved] HTML report error, httprunner 3. X HTML report error, oserror: [winerror 6] handle invalid (resolved)
- cannot create windows service for mysql. error:0 [How to Solve]
- [Solved] Kettle Error: ../deploy does not exist, please create it.
- NPM install -g create-react-app [How to Solve]
- [Solved] docker Error response from daemon OCI runtime create failed container_linux.go380
- [Solved] IDEA Start Project Error: Abnormal build process termination:Could not create the Java Virtual Machine.
- Error starting vue project these dependencies were not found:create in ./src/router/modules/md.js