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

dgloriaweb @dgloriaweb

About: self taught full stack developer

Location:
Northamptonshire, UK
Joined:
Nov 23, 2019

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

Publish Date: Apr 28 '22
0 0

...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"

Comments 0 total

    Add comment