How can I solve this dependency error for yarn global add @vue/cli?

305 Views Asked by At

Within a Mac environment, I am trying to upgrade the Vue CLI v4.5.13 to 5.0.8 using Yarn as the package manager.

Enter image description here

After fetching the packages, the terminal result is:

ted (end-of-life October 22nd 2023). This package's functionality is now found in the `@apollo/server` package. See https://www.apollographql.com/docs/apollo-server/previous-versions/ for more details.
[2/4]   Fetching packages...
error [email protected]: The engine "node" is incompatible with this module. Expected version ">=10.16.0 <=14.x.x". Got "16.17.1"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/global for documentation about this command.

Reading the documentation at https://classic.yarnpkg.com/en/docs/cli/global does not help.

I expect to update the VUE CLI regardless to project dependencies and I am missing the command that the command

yarn global upgrade @vue/cli

ignores all existent dependencies and simply updates...

yarn add @vue/cli

finished successfully, but that does not help, due the Vue CLI remains to v4.5.13.

What does

Fetching packages...
error [email protected]: The engine "node" is incompatible with this module. Expected version ">=10.16.0 <=14.x.x". Got "16.17.1"

state?

Node is incompatible to the node module defined in a local strapi project, right?

How should I handle this and why?

Thank you very much, for your kind explanations...

I am trying to update Vue CLI to the latest version and hitting dependency blocks on the global layer.

0

There are 0 best solutions below