Error command failed: yard
Solution 1: enter CMD in Win + R to enter the command line interface
Input command
npm install -g yarn
After success, re create the vue-cli4 project to solve the problem.
Solution 2:
Enter the C/users/administrator/Windows environment
There is a file. Vuerc
Open this file to show
{
"useTaobaoRegistry": true,
"packageManager": "yarn"
}
Just manually change the configuration content yarn to NPM to change the package manager when creating the project
Solution 3:
Delete the. Vuerc file. When creating a Vue project for the first time, you will be prompted to select configuration, and then you can select NPM.
Read More:
- Create Vue cli project and report error command failed: Yarn
- Error command failed when creating vue-cli4 project: Yarn
- PIP report failed to create process
- Vue Alain startup command yarn serve reports an error
- “Failed to create interpreter” appears when pychar creates a new project
- Use sc command under CMD, report openservice failed 1060 error
- Error creating project by Vue yorkie: command failed
- Error failed to build IOS project. We ran “xcodebuild” command but it exited wit
- Ambari failed to monitor yarn ResourceManager, restart invalid
- Create an OpenGL project in codeblock
- Yarn: runtime.ContainerExecutionException : launch container failed
- React create project error
- yarn install gyp verb `which` failed python2 Error: not found: python2
- Create a new project in pycharm: modulenotfounde rror:No module named ‘distutils.util‘
- Create xxx.vue file with vscode, add comments and report error
- New Maven project– pom.xml report errors
- SSM project controller layer calls static method to report an error
- The project uses fastjason to report an error
- On the error report after the command of ADB shell error:device not A solution of found
- Error report of windows system running UMI project