T
T
TheRelow2021-11-12 23:34:42
npm
TheRelow, 2021-11-12 23:34:42

Why does only npm work when installing a package globally?

I installed vue globally via yarn
yarn global add @vue/cli
Then checked the version
vue --version
But got an error. It was written there that vue is not on the computer

Next, I installed vue via npm
npm install -g @vue/cli
And after checking the version, I got an answer.

Why isn't it globally installed via yarn vue?

UPD: When I created the project, vue createI chose yarn as the project's package manager, but at the end I got an error ERROR command failed: yarn, although yarn run works

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stanislav Makarov, 2021-11-13
@Nipheris

What OS? Is the result of the call yarn global binin PATHadded? If not, read the instructions at the link.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question