Error reported when creating Vue item: error command failed: Yarn
Solution 1: Win + R enter CMD to enter the command line interface
Enter command
npm install -g yarn
After success, the problem can be solved by re creating vue-cli4 project.
Solution 2:
Enter C:/users/administrator/in the windows environment
There is a file. Vuerc
Open this file to display
{
"useTaobaoRegistry": true,
"packageManager": "yarn"
}
Just manually change the configuration content yarn to NPM to change the package manager when the project is created
Solution 3:
Delete the. Vuerc file. When you create a Vue project for the first time, you will be prompted to select the configuration, and then select NPM
Read More:
- Create Vue cli project and report error command failed: Yarn
- Create vue-cli4 project and report error command failed: yarn
- Install Xen virtual machine using virt-manager
- NPM install error cb.apply is not a function
- Error an unexpected error occurred: * * * etimedout
- SAP RETAIL WA01 Creative Distribution List Error – Plant 0000000039 Confirmation date not maintained. –
- Error creating project by Vue yorkie: command failed
- Common problems of Aidl cross process communication
- 3. Idea creates a springboot project, and spring initializer reports an error Error:connect timed out
- @Solution of error failed to get response from / Vue cli version marker
- Failed to download when creating Vue project, solution
- Eclipse Syntax error, annotations are only available if source level is 1.5 or greater
- Ambari failed to monitor yarn ResourceManager, restart invalid
- Yard error: found incompatible module
- Idea ignores compilation errors and runs in eclipse compilation mode
- org.apache.flink.runtime.client.JobSubmissionException: Failed to submit JobGraph
- Error C2664 in C + + compilation: cannot convert parameter 2 from “const char [5]” to “lpctstr” solution.
- Project read error when downloading Maven project
- [solution] install L2TP and related settings in Ubuntu 18.04