When you run the command
flutterwave -v
and it says command not found, you can fix it with the below hack.
MAC
in your terminal run
export PATH="~/.composer/vendor/bin:$PATH"
source ~/.bashrc
echo 'source ~/.bashrc' >> ~/.bash_profile
To verify that:
echo $PATH
(Restart the terminal, Check & Confirm the path is there)
Run the flutterwave command!
WINDOWS
So instead of ~/.composer/vendor/bin
, on Windows the following path should be used:
C:\Users\<COMPUTER NAME>\AppData\Roaming\Composer\vendor\bin
Then update the PATH environment variable via e.g. command prompt with admin privileges:
setx /M path "%path%;%appdata%\Composer\vendor\bin"
%appdata%
is added, so you don’t have to worry about adding your computer name.
UBUNTU (Ubuntu 16 and above)
export PATH="~/.config/composer/vendor/bin:$PATH"