Error command failed when creating vue-cli4 project: Yarn


Vue cli

an error is reported when creating a Vue item: error command failed: Yarn

Solution 1: Win + R enter CMD to enter the command line interface

Enter command

After NPM install – G yarn
succeeds, you can re create the vue-cli4 project.

Solution 2:

Enter C:/users/administrator/in the windows environment

There is a file. Vuerc


Open this file to display

“usetaobao Registry”: true,
“packagemanager”: “yarn”
you can change the package manager when creating a project by manually changing the configuration content of yarn to NPM


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

original link:

Similar Posts: