[英]Flutterwave command not working (Flutterwave CLI)
When you run the command flutterwave -v
and it says command not found, you can fix it with the below hack.当您运行命令flutterwave -v
并显示找不到命令时,您可以使用以下 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 WINDOWS
So instead of ~/.composer/vendor/bin
, on Windows the following path should be used:因此,在 Windows 上,应使用以下路径,而不是~/.composer/vendor/bin
:
C:\Users\<COMPUTER NAME>\AppData\Roaming\Composer\vendor\bin
Then update the PATH environment variable via eg command prompt with admin privileges:然后通过例如具有管理员权限的命令提示符更新 PATH 环境变量:
setx /M path "%path%;%appdata%\Composer\vendor\bin"
%appdata%
is added, so you don't have to worry about adding your computer name. %appdata%
已添加,因此您不必担心添加计算机名称。
UBUNTU (Ubuntu 16 and above) UBUNTU(Ubuntu 16及以上)
export PATH="~/.config/composer/vendor/bin:$PATH"
Here is some tips for some of the issues you may run into during the CLI setup:以下是您在 CLI 设置过程中可能遇到的一些问题的一些提示:
Composer/Packagist could not find package for minimum stability after trying to run composer global require flutterwavedev/cli
:- to resolve this run composer global require flutterwavedev/cli:dev-master
instead. Composer/Packagist 在尝试运行composer global require flutterwavedev/cli
后找不到 package 以获得最低稳定性:- 解决此运行composer global require flutterwavedev/cli:dev-master
代替。
No such file or directory after running source ~/.bashrc
:- to resolve this run touch ~/.bashrc
to create the file and nano ~/.bashrc
to add the export path to the file.运行source ~/.bashrc
后没有这样的文件或目录:- 解决此运行touch ~/.bashrc
以创建文件和nano ~/.bashrc
以将导出路径添加到文件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.