Answer the question
In order to leave comments, you need to log in
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 create
I 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
What OS? Is the result of the call yarn global bin
in PATH
added? If not, read the instructions at the link.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question