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-cli4 project and report error command failed: yarn
- Create Vue cli project and report error command failed: Yarn
- Error creating project by Vue yorkie: command failed
- Failed to download when creating Vue project, solution
- Vue Alain startup command yarn serve reports an error
- ADT:v22.6.2-1085508 Creating Android project and creating appcompat automatically_ V7 solution
- Error failed to build IOS project. We ran “xcodebuild” command but it exited wit
- Ambari failed to monitor yarn ResourceManager, restart invalid
- How to solve the problem of artifact contains illegal characters when creating springboot project with idea
- Yarn: runtime.ContainerExecutionException : launch container failed
- yarn install gyp verb `which` failed python2 Error: not found: python2
- Error in project operation org.springframework.beans . factory.BeanCreationException : error creating bean with name can be configured by
- android studio Error Gradle project sync failed. Please fix your project and try again
- Solutions to yarn install error reporting
- Error: Gradle project sync failed. Please fix your project and try again.
- Ranger yarn plug-in installation
- Error code elifecycle errorno when NPM install command is executed in Vue project
- Mac install yarn 2020-10-18
- [Solved] Android gradle Error: gradle project sync failed. Please fix your project and try again
- Qt Failed opening project “xxx“: No plugin can open project type “text/plain“