DEV Community

dgloriaweb
dgloriaweb

Posted on

Fixing Yarn errors on vue create app, vue-cli install, the engine node is incompatible with this module

...and similar errors on using vue add axios, vue add router:
I have spent an hour googling this error, reinstalling node, yarn, vue-cli, and had totally no idea why npm install runs yarn install all the time and keeps complaining about everything. I've found this page after my hair turned gray not being able to do a new vue project.
https://programmerah.com/create-vue-cli-project-and-report-error-command-failed-yarn-37868/

The author's solution helped after all. Big thanks.
"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"

Top comments (0)