Today, when I use yarn, it reports the error as the title.
Error reason:
The default package management is set to yarn, but yarn is not installed
Therefore, after uninstalling, you should:
1. Open the C drive, in the C drive, open the users folder, then search for the file named .vuerc on the right side.
2. Open the file, find the packageManager property, you can see that the default value you configured is yarn, change its value to npm.
If you need to install yarn, you can:
In the command line window, directly enter the commandnpm install yarn
to installyarn
.
Read More:
- [Solved] Error spawn CMD enoent errno when starting Vue project: – 4058
- [Solved] Temporary error: Error: spawn E:\vue3-vite\my-app\node_modules\esbuild\esbuild.exe ENOENT
- [Solved] electron project Package Error: spawn exe\dll ENOENT
- [Solved] Vue-cli Create Project Error: ERROR command failed: yarn
- Vue scaffold creation project and run error [Solved]
- [Solved] Vue create Create Project Error: command failed: npm install –loglevel error
- Yarn vue3 modify the name of the source file Error [Solved]
- [Solved] VUE npm install Error: Module build failed: Error: ENOENT: no such file or directory, scandir
- [Solved] vue3vite Error: Failed to resolve import “@vue/server-renderer from “src\App.vue“. Does the file exist
- [Solved] Vue create error: ERROR: command failed: npm install –loglevel error
- node.js yarn Error: SyntaxError: Unexpected string [How to Solve]
- Vue2.0: How to Use vue3 api to encapsulate Axios
- [Solved] Vue2.x vue-lazyload Error: Failed to resolve directive: lazy
- [Solved] Vue item packaging error: Failed to load resource: the server responded with a status of 404 (Not Found)
- [Solved] Vue Error: Failed to resolve directive: scroll-to
- [Solved] Failed to load plugin ‘vue‘ declared in ‘.eslintrc.js‘: createRequire is not a function
- [Solved] Vue3 Error: Failed to resolve component:xxx
- Vue3.0 error: Failed to resolve component el-form-item (el element to be unable to be displayed)
- [Solved] Node Create Express Project Error: Failed to lookup view “error“ in views directory
- Full screen scrolling by Vue + Vue awesomeswiper