0👍
✅
Instead of using:
yarn add -g @vue/cli
Use this command:
yarn global add @vue/cli
Note: If you are on windows you have to use CMD
to run vue cli
commands. As by default PowerShell
doesn’t allow to run packages that were installed globally via npm
or yarn
. You may need to disable PowerShell
security to use that package in PowerShell
. But I recommend you to use cmd
to use the package after installation. But still, you can install the package via PowerShell
.
Source:stackexchange.com