Create a project through vue-cli, and the error ERROR command failed: yarn is reported
reason:
Installed yarn package manager When creating a vue project, you choose to use yarn package manager, but when creating a project through vue-cli, you use npm, causing a conflict
Solution:
The path to open the document is:C:\Users\Administrator\.vuerc
Note: If you don’t see it, check the hidden items at the top in Explorer
Open the folder and replace yarn with npm
Solve the problem and recreate the item
Read More:
- [Solved] Failed to Create Vue Scaffold Error: spawn yarn ENOENT
- [Solved] Vue create Create Project Error: command failed: npm install –loglevel error
- [Solved] Vue create error: ERROR: command failed: npm install –loglevel error
- [Solved] Node Create Express Project Error: Failed to lookup view “error“ in views directory
- node.js yarn Error: SyntaxError: Unexpected string [How to Solve]
- Yarn vue3 modify the name of the source file Error [Solved]
- [Solved] bug: error Command failed with exit code 1.
- [Solved] error C:\Users\HP\Desktop\VueProject\vue_cli\node_modules\node-sass: Command failed.Exit code: 1
- [Solved] VSCode package Error: Command failed: npm list –production –parseable –depth=99999 –loglevel=error
- [Solved] ERROR Error loading vue.config.js: ERROR Error: Command failed: git describe
- [Solved] Vue Project Modify Page Error: CALL_AND_RETRY_LAST Allocation failed – JavaScript heap out of memory
- [Solved] Vue Project Error: Module build failed: Error: Missing binding
- ArcGIS API for JavaScript version 4. X updated and the project startup error: Module parse failed: Unexpected token(… …
- [Solved] Uniapp project use vant icon Error: (module build failed from./node_modules/postcss loader/SRC/index)
- CRA 5.0.0 Add Proxy Project Start Error [How to Solve]
- How to Solve npm-install Command -4048 Error
- “Failed to load resource: net::ERR_FILE_NOT_FOUND” error. The project created by vue-cli 3.0 can run under dev, and an error is reported after packaging, and the page is blank.
- JS getting ${pageContext.request.contextPath} Get the root path of the project
- [Vue warn]: Error in callback for watcher “fileList”: “TypeError: Cannot create property ‘uid’ on string
- [Solved] Vue Project Error: Arrow function should not return assignment