Create Vue cli project and report error command failed: Yarn
Solution 1:
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 2:
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.
Solution 3: enter CMD in Win + R 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.
Read More:
- Create vue-cli4 project and report error command failed: yarn
- Error command failed when creating vue-cli4 project: Yarn
- Vue cli 4 CMD command creates an error: error command failed NPM install – loglevel error – solution
- Vue Alain startup command yarn serve reports an error
- Vue cli service: command not found
- Error creating project by Vue yorkie: command failed
- Solution to inaccessibility of Vue cli scaffold project after startup
- Vue init webpack command error Vue cli / node_ modules/_ [email protected]@rimraf/rimraf.js :313
- When starting Vue project: cannot find module ‘webpack cli/bin/config yargs’ error [How to Fix]
- @Solution of error failed to get response from / Vue cli version marker
- Create xxx.vue file with vscode, add comments and report error
- Vue cli · failed to download repo vuejs templates / webpack: read econnreset
- Error in created hook: “referenceerror:” promise “undefined” Vue cli project Google is right, ie reported an error, “promise” undefined“
- Error code elifecycle errorno when NPM install command is executed in Vue project
- Does Vue project already have sass loader dependency or report an error using lang = “SCSS”
- PIP report failed to create process
- After introducing sass into Vue project, start to report error typeerror [err]_ INVALID_ ARG_ Type]: the “path” argument must be of type string
- Solution to Vue cli · failed to download repo vuejs templates/webpack: connect etimeout followed by an IP digital error message
- Failed to download when creating Vue project, solution
- Solution of “serve with message ‘spawn Vue cli service enoent”