yarn global add @vue-storefront/cli@nextvsfCommand 'vsf' not found, did you mean: [...]yarn global add @vue-storefront/cli@nextvsfERROR VSF Provide commandSteps described above in Current behavior and Expected behavior sections
Problem does not occur when using NPM to install the CLI package.
Even though Yarn informs that the binary was installed, it's unavailable. Example installation log:
success Installed "@vue-storefront/[email protected]" with binaries:
- vsf
Please open terminal and run:
yarn global bin
Then:
echo $PATH;
I bet you do not have path to yarn global binaries in your $PATH - that's why you cannot run it from each place. More about this here
To solve this you should modify your $PATH variable. You could use (just tested it on Ubuntu 20.04):
export PATH="$(yarn global bin):$PATH"
Unfortunately, it will work only for the current terminal. If you want to have it permanently, you want to modify your ~/.bashrc. More about this here
@Fifciu Yep, that was the issue, thanks :slightly_smiling_face:
Most helpful comment
Please open terminal and run:
Then:
I bet you do not have path to yarn global binaries in your
$PATH- that's why you cannot run it from each place. More about this hereTo solve this you should modify your
$PATHvariable. You could use (just tested it on Ubuntu 20.04):Unfortunately, it will work only for the current terminal. If you want to have it permanently, you want to modify your
~/.bashrc. More about this here